1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

UAVObjects: switched around order of update modes to give each bit semantic meaning - important to allow usage of a bitfield type later

This commit is contained in:
Corvus Corax 2012-05-15 18:21:27 +02:00
parent 817ce9327f
commit badf509d1d
2 changed files with 8 additions and 8 deletions

View File

@ -59,10 +59,10 @@ typedef void* UAVObjHandle;
* Object update mode, used by multiple modules (e.g. telemetry and logger) * Object update mode, used by multiple modules (e.g. telemetry and logger)
*/ */
typedef enum { typedef enum {
UPDATEMODE_PERIODIC = 0, /** Automatically update object at periodic intervals */ UPDATEMODE_MANUAL = 0, /** Manually update object, by calling the updated() function */
UPDATEMODE_ONCHANGE = 1, /** Only update object when its data changes */ UPDATEMODE_PERIODIC = 1, /** Automatically update object at periodic intervals */
UPDATEMODE_THROTTLED = 2, /** Object is updated on change, but not more often than the interval time */ UPDATEMODE_ONCHANGE = 2, /** Only update object when its data changes */
UPDATEMODE_MANUAL = 3 /** Manually update object, by calling the updated() function */ UPDATEMODE_THROTTLED = 3 /** Object is updated on change, but not more often than the interval time */
} UAVObjUpdateMode; } UAVObjUpdateMode;
/** /**

View File

@ -58,10 +58,10 @@ public:
* Object update mode * Object update mode
*/ */
typedef enum { typedef enum {
UPDATEMODE_PERIODIC = 0, /** Automatically update object at periodic intervals */ UPDATEMODE_MANUAL = 0, /** Manually update object, by calling the updated() function */
UPDATEMODE_ONCHANGE = 1, /** Only update object when its data changes */ UPDATEMODE_PERIODIC = 1, /** Automatically update object at periodic intervals */
UPDATEMODE_THROTTLED = 2, /** Object is updated on change, but not more often than the interval time */ UPDATEMODE_ONCHANGE = 2, /** Only update object when its data changes */
UPDATEMODE_MANUAL = 3 /** Manually update object, by calling the updated() function */ UPDATEMODE_THROTTLED = 3 /** Object is updated on change, but not more often than the interval time */
} UpdateMode; } UpdateMode;
/** /**