diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-01-23 22:41:26 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-01-23 22:41:26 +0100 |
commit | 1cffa9d2f77f788f8446e0aceec60b7676a0a65f (patch) | |
tree | 6ed00299b9b3f2e096f13a4eb615ffd84e4c2564 /src/modules/uORB/topics/position_setpoint_triplet.h | |
parent | 6acb8fa66f38d20af57b8c45cc7878257abb24d2 (diff) | |
download | px4-firmware-1cffa9d2f77f788f8446e0aceec60b7676a0a65f.tar.gz px4-firmware-1cffa9d2f77f788f8446e0aceec60b7676a0a65f.tar.bz2 px4-firmware-1cffa9d2f77f788f8446e0aceec60b7676a0a65f.zip |
position_setpoint_triplet refactoring finished
Diffstat (limited to 'src/modules/uORB/topics/position_setpoint_triplet.h')
-rw-r--r-- | src/modules/uORB/topics/position_setpoint_triplet.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/uORB/topics/position_setpoint_triplet.h b/src/modules/uORB/topics/position_setpoint_triplet.h index a8bd6b8e3..4b57833b6 100644 --- a/src/modules/uORB/topics/position_setpoint_triplet.h +++ b/src/modules/uORB/topics/position_setpoint_triplet.h @@ -61,12 +61,15 @@ enum SETPOINT_TYPE struct position_setpoint_s { - bool valid; /**< true if point is valid */ + bool valid; /**< true if setpoint is valid */ + enum SETPOINT_TYPE type; /**< setpoint type to adjust behavior of position controller */ double lat; /**< latitude, in deg */ double lon; /**< longitude, in deg */ float alt; /**< altitude AMSL, in m */ - float yaw; /**< yaw (only for multirotors), in rad [-PI..PI), NaN to hold current yaw */ - enum SETPOINT_TYPE type; /**< setpoint type to adjust behavior of position controller */ + float yaw; /**< yaw (only for multirotors), in rad [-PI..PI), NaN = hold current yaw */ + float loiter_radius; /**< loiter radius (only for fixed wing), in m */ + int8_t loiter_direction; /**< loiter direction: 1 = CW, -1 = CCW */ + float pitch_min; /**< minimal pitch angle for fixed wing takeoff waypoints */ }; /** |