MyBeeSTEMListener Class Reference

Our own little BeeSTEMListener. More...

Inheritance diagram for MyBeeSTEMListener:
Inheritance graph
[legend]
Collaboration diagram for MyBeeSTEMListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void event (const BeeSTEMEventType t, const unsigned char dat1, const unsigned char dat2)
 An event was received.
 MyBeeSTEMListener (nub::soft_ref< BeeSTEM > &b)
virtual void event (const BeeSTEMEventType t, const unsigned char dat1, const unsigned char dat2)
 An event was received.

Detailed Description

Our own little BeeSTEMListener.

Definition at line 47 of file test-BeeSTEM.C.


Member Function Documentation

virtual void MyBeeSTEMListener::event ( const BeeSTEMEventType  t,
const unsigned char  dat1,
const unsigned char  dat2 
) [inline, virtual]

An event was received.

This function will be called by the BeeSTEM once you have registered your BeeSTEMListener derivative with the BeeSTEM using BeeSTEM::setListener(). Beware that the call to event() will be from a thread running in the BeeSTEM and thus will operate in parallel with your main thread and main loop. See test-BeeSTEM.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    _type______________________dat1__________________dat2_
    COMPASS_HEADING             heading               0
    COMPASS_PITCH               pitch                 0
    COMPASS_ROLL                roll                  0
    ACCEL_X                     x-acceleration        0
    ACCEL_Y                     y-acceleration        0
    INT_PRESS                   internal pressure     0
    EXT_PRESS                   external pressure     0
    TEMP1                       temperature 1         0
    TEMP2                       temperature 2         0
    TEMP3                       temperature 3         0
    DIG_IN                      digital input byte    0
    ADC_IN                      spare adc value       0
    MOTOR_CURR                  current               motor number
    All Others                  0                     0
    

Implements BeeSTEMListener.

Definition at line 66 of file test-CBdirection.C.

References PID< T >::update().

virtual void MyBeeSTEMListener::event ( const BeeSTEMEventType  t,
const unsigned char  dat1,
const unsigned char  dat2 
) [inline, virtual]

An event was received.

This function will be called by the BeeSTEM once you have registered your BeeSTEMListener derivative with the BeeSTEM using BeeSTEM::setListener(). Beware that the call to event() will be from a thread running in the BeeSTEM and thus will operate in parallel with your main thread and main loop. See test-BeeSTEM.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    _type______________________dat1__________________dat2_
    COMPASS_HEADING             heading               0
    COMPASS_PITCH               pitch                 0
    COMPASS_ROLL                roll                  0
    ACCEL_X                     x-acceleration        0
    ACCEL_Y                     y-acceleration        0
    INT_PRESS                   internal pressure     0
    EXT_PRESS                   external pressure     0
    TEMP1                       temperature 1         0
    TEMP2                       temperature 2         0
    TEMP3                       temperature 3         0
    DIG_IN                      digital input byte    0
    ADC_IN                      spare adc value       0
    MOTOR_CURR                  current               motor number
    All Others                  0                     0
    

Implements BeeSTEMListener.

Definition at line 56 of file test-BeeSTEM.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:23:26 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3