CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Blimp/GCS_Blimp.cpp
Views: 1798
1
#include "GCS_Blimp.h"
2
3
#include "Blimp.h"
4
5
uint8_t GCS_Blimp::sysid_this_mav() const
6
{
7
return blimp.g.sysid_this_mav;
8
}
9
10
const char* GCS_Blimp::frame_string() const
11
{
12
return blimp.get_frame_string();
13
}
14
15
void GCS_Blimp::update_vehicle_sensor_status_flags(void)
16
{
17
// mode-specific flags:
18
control_sensors_present |=
19
MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL |
20
MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION |
21
MAV_SYS_STATUS_SENSOR_YAW_POSITION;
22
23
control_sensors_enabled |=
24
MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL |
25
MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION |
26
MAV_SYS_STATUS_SENSOR_YAW_POSITION;
27
28
control_sensors_health |=
29
MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL |
30
MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION |
31
MAV_SYS_STATUS_SENSOR_YAW_POSITION;
32
33
control_sensors_present |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
34
control_sensors_present |= MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL;
35
}
36
37