2016-01-14 15:30:56 -04:00
|
|
|
#include "Sub.h"
|
2015-12-30 18:57:56 -04:00
|
|
|
|
2016-01-14 15:30:56 -04:00
|
|
|
void Sub::init_capabilities(void)
|
2015-12-30 18:57:56 -04:00
|
|
|
{
|
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT);
|
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT);
|
2016-05-03 01:45:37 -03:00
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_INT);
|
2015-12-30 18:57:56 -04:00
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED);
|
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT);
|
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION);
|
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET);
|
2016-07-05 21:18:58 -03:00
|
|
|
#if AP_TERRAIN_AVAILABLE && AC_TERRAIN
|
2017-02-03 17:33:27 -04:00
|
|
|
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_TERRAIN);
|
2016-07-05 21:18:58 -03:00
|
|
|
#endif
|
2015-12-30 18:57:56 -04:00
|
|
|
}
|