2021-03-18 00:12:54 -03:00
|
|
|
#include "GCS_Blimp.h"
|
|
|
|
|
|
|
|
#include "Blimp.h"
|
|
|
|
|
|
|
|
uint8_t GCS_Blimp::sysid_this_mav() const
|
|
|
|
{
|
|
|
|
return blimp.g.sysid_this_mav;
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* GCS_Blimp::frame_string() const
|
|
|
|
{
|
|
|
|
return blimp.get_frame_string();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GCS_Blimp::update_vehicle_sensor_status_flags(void)
|
|
|
|
{
|
2021-04-13 00:55:54 -03:00
|
|
|
// mode-specific flags:
|
2021-03-18 00:12:54 -03:00
|
|
|
control_sensors_present |=
|
|
|
|
MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL |
|
|
|
|
MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION |
|
|
|
|
MAV_SYS_STATUS_SENSOR_YAW_POSITION;
|
|
|
|
|
|
|
|
control_sensors_enabled |=
|
|
|
|
MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL |
|
|
|
|
MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION |
|
|
|
|
MAV_SYS_STATUS_SENSOR_YAW_POSITION;
|
|
|
|
|
|
|
|
control_sensors_health |=
|
|
|
|
MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL |
|
|
|
|
MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION |
|
|
|
|
MAV_SYS_STATUS_SENSOR_YAW_POSITION;
|
|
|
|
|
2021-04-13 00:55:54 -03:00
|
|
|
control_sensors_present |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
|
|
|
control_sensors_present |= MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL;
|
2021-03-18 00:12:54 -03:00
|
|
|
}
|