2015-01-28 02:54:58 -04:00
|
|
|
# this file is only used in the position_setpoint triple as a dependency
|
|
|
|
|
2018-08-07 10:42:32 -03:00
|
|
|
uint64 timestamp # time since system start (microseconds)
|
2018-08-06 21:30:05 -03:00
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
uint8 SETPOINT_TYPE_POSITION=0 # position setpoint
|
|
|
|
uint8 SETPOINT_TYPE_VELOCITY=1 # velocity setpoint
|
|
|
|
uint8 SETPOINT_TYPE_LOITER=2 # loiter setpoint
|
|
|
|
uint8 SETPOINT_TYPE_TAKEOFF=3 # takeoff setpoint
|
|
|
|
uint8 SETPOINT_TYPE_LAND=4 # land setpoint, altitude must be ignored, descend until landing
|
|
|
|
uint8 SETPOINT_TYPE_IDLE=5 # do nothing, switch off motors or keep at idle speed (MC)
|
|
|
|
uint8 SETPOINT_TYPE_OFFBOARD=6 # setpoint in NED frame (x, y, z, vx, vy, vz) set by offboard
|
2016-02-24 14:03:46 -04:00
|
|
|
uint8 SETPOINT_TYPE_FOLLOW_TARGET=7 # setpoint in NED frame (x, y, z, vx, vy, vz) set by follow target
|
2015-01-28 02:54:58 -04:00
|
|
|
|
2016-11-21 10:53:39 -04:00
|
|
|
uint8 VELOCITY_FRAME_LOCAL_NED = 1 # MAV_FRAME_LOCAL_NED
|
|
|
|
uint8 VELOCITY_FRAME_BODY_NED = 8 # MAV_FRAME_BODY_NED
|
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
bool valid # true if setpoint is valid
|
|
|
|
uint8 type # setpoint type to adjust behavior of position controller
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
float32 x # local position setpoint in m in NED
|
|
|
|
float32 y # local position setpoint in m in NED
|
|
|
|
float32 z # local position setpoint in m in NED
|
|
|
|
bool position_valid # true if local position setpoint valid
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
float32 vx # local velocity setpoint in m/s in NED
|
|
|
|
float32 vy # local velocity setpoint in m/s in NED
|
|
|
|
float32 vz # local velocity setpoint in m/s in NED
|
|
|
|
bool velocity_valid # true if local velocity setpoint valid
|
2016-11-21 10:53:39 -04:00
|
|
|
uint8 velocity_frame # to set velocity setpoints in NED or body
|
2016-11-07 07:09:41 -04:00
|
|
|
bool alt_valid # do not set for 3D position control. Set to true if you want z-position control while doing vx,vy velocity control.
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
float64 lat # latitude, in deg
|
|
|
|
float64 lon # longitude, in deg
|
|
|
|
float32 alt # altitude AMSL, in m
|
|
|
|
float32 yaw # yaw (only for multirotors), in rad [-PI..PI), NaN = hold current yaw
|
|
|
|
bool yaw_valid # true if yaw setpoint valid
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
float32 yawspeed # yawspeed (only for multirotors, in rad/s)
|
|
|
|
bool yawspeed_valid # true if yawspeed setpoint valid
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2018-11-06 08:58:45 -04:00
|
|
|
int8 landing_gear # landing gear: see definition of the states in landing_gear.msg
|
2018-11-05 09:47:18 -04:00
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
float32 loiter_radius # loiter radius (only for fixed wing), in m
|
|
|
|
int8 loiter_direction # loiter direction: 1 = CW, -1 = CCW
|
|
|
|
float32 pitch_min # minimal pitch angle for fixed wing takeoff waypoints
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2015-01-28 02:54:58 -04:00
|
|
|
float32 a_x # acceleration x setpoint
|
|
|
|
float32 a_y # acceleration y setpoint
|
|
|
|
float32 a_z # acceleration z setpoint
|
|
|
|
bool acceleration_valid # true if acceleration setpoint is valid/should be used
|
|
|
|
bool acceleration_is_force # interprete acceleration as force
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2016-01-22 08:29:27 -04:00
|
|
|
float32 acceptance_radius # navigation acceptance_radius if we're doing waypoint navigation
|
2017-09-07 14:14:58 -03:00
|
|
|
|
2016-01-22 08:29:27 -04:00
|
|
|
float32 cruising_speed # the generally desired cruising speed (not a hard constraint)
|
2016-06-09 12:15:57 -03:00
|
|
|
float32 cruising_throttle # the generally desired cruising throttle (not a hard constraint)
|