Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
FlashIPAddrBehavior Class ReferenceDisplays IP address by speaking the digits and flashing a series of numbers on the LED face panel. More...
Inheritance diagram for FlashIPAddrBehavior:
Detailed DescriptionDisplays IP address by speaking the digits and flashing a series of numbers on the LED face panel. Will only run the display on doStart() if the flash_on_start config variable is set. Otherwise you will need to hold down the buttons specified by button1 and button2 to trigger the display. Note that if the e-stop is active it will intercept the button events, so turn off e-stop first. Definition at line 20 of file FlashIPAddrBehavior.h.
Member Typedef Documentation
used to flash the LEDs to report the IP address Definition at line 49 of file FlashIPAddrBehavior.h. Constructor & Destructor Documentation
constructor Definition at line 23 of file FlashIPAddrBehavior.h. Member Function Documentation
Receives button events, timers, and motman manager pruning notifications. Reimplemented from BehaviorBase. Definition at line 41 of file FlashIPAddrBehavior.cc.
if the Config::behavior_config::flash_on_start flag is set, will setup and run Reimplemented from BehaviorBase. Definition at line 19 of file FlashIPAddrBehavior.cc.
halts any display which may be in progress Reimplemented from BehaviorBase. Definition at line 33 of file FlashIPAddrBehavior.cc.
Gives a short description of what this class of behaviors does... you should override this (but don't have to). If you do override this, also consider overriding getDescription() to return it Reimplemented from BehaviorBase. Definition at line 33 of file FlashIPAddrBehavior.h. Referenced by getDescription().
Gives a short description of what this particular instantiation does (in case a more specific description is needed on an individual basis). By default simply returns getName(), because any calls from a BehaviorBase function to getClassDescription() are going to call BehaviorBase::getClassDescription(), not ~YourSubClass~getClassDescription(), because static functions can't be virtual in C++ (doh!) This means that getDescription called on a pointer to a BehaviorBase of unknown subtype would always return an empty string, which is pretty useless. So instead we return the name in this situation. If you want getDescription to return getClassDescription, you'll have to override it in your subclass to do so. Reimplemented from BehaviorBase. Definition at line 46 of file FlashIPAddrBehavior.h.
loads the numeric sounds into memory Definition at line 89 of file FlashIPAddrBehavior.cc.
releases the numeric sounds Definition at line 94 of file FlashIPAddrBehavior.cc. Referenced by doEvent(), doStop(), and setupSequence().
construct the motion sequence for flashing leds, request timers to play corresponding sound file Definition at line 100 of file FlashIPAddrBehavior.cc. Member Data Documentation
timer id to specify both trigger buttons have been down long enough Definition at line 63 of file FlashIPAddrBehavior.h. Referenced by doEvent().
one of two buttons which must be pressed together to trigger the report without using the Controller Definition at line 59 of file FlashIPAddrBehavior.h. Referenced by doEvent(), doStart(), and getClassDescription().
one of two buttons which must be pressed together to trigger the report without using the Controller Definition at line 60 of file FlashIPAddrBehavior.h. Referenced by doEvent(), doStart(), and getClassDescription().
time (in milliseconds) to expect ms to be delayed before it actually starts Definition at line 65 of file FlashIPAddrBehavior.h. Referenced by setupSequence().
motion sequence used to control the LEDs Definition at line 67 of file FlashIPAddrBehavior.h. Referenced by doEvent(), doStart(), and setupSequence().
sound to play, corresponding to timers to coincide with corresponding digit on the LEDs (could be done with chained sounds, but this is cooler) Definition at line 64 of file FlashIPAddrBehavior.h. Referenced by doEvent(), loadSounds(), releaseSounds(), and setupSequence(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:08 2016 by Doxygen 1.6.3 |