aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-07-03 16:20:58 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-07-03 16:20:58 +0200
commit822403e34b5e1b4adf15783b5bd701e1f52484fe (patch)
tree67be571498c1e842f1790b34c2f796cc507a9b55
parentcbd602c27cb081502a2f1f1d910abdd1c2d7be13 (diff)
downloadpx4-firmware-822403e34b5e1b4adf15783b5bd701e1f52484fe.tar.gz
px4-firmware-822403e34b5e1b4adf15783b5bd701e1f52484fe.tar.bz2
px4-firmware-822403e34b5e1b4adf15783b5bd701e1f52484fe.zip
uorb offboard control topic: add force sp flag
The flag has the same meaning as bit 10 of type_mask in MAVLINK_MSG_ID_LOCAL_NED_POSITION_SETPOINT_EXTERNAL
-rw-r--r--src/modules/uORB/topics/offboard_control_setpoint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/uORB/topics/offboard_control_setpoint.h b/src/modules/uORB/topics/offboard_control_setpoint.h
index 427ccc6c8..2741f0c07 100644
--- a/src/modules/uORB/topics/offboard_control_setpoint.h
+++ b/src/modules/uORB/topics/offboard_control_setpoint.h
@@ -91,7 +91,9 @@ struct offboard_control_setpoint_s {
float p8; /**< y acc */
float p9; /**< z acc */
+ //XXX: use a bitmask with wrapper functions instead
bool ignore[9]; /**< if field i is set to true, pi should be ignored */
+ bool isForceSetpoint; /**< if set to true: p7 to p9 should be interpreted as force instead of acceleration */
float override_mode_switch;