mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
frsk_telemetry: astyle
This commit is contained in:
parent
69b0b75151
commit
76c66a4e92
@ -183,18 +183,21 @@ void frsky_update_topics()
|
||||
|
||||
/* get a local copy of the current sensor values */
|
||||
orb_check(sensor_sub, &updated);
|
||||
|
||||
if (updated) {
|
||||
orb_copy(ORB_ID(sensor_combined), sensor_sub, raw);
|
||||
}
|
||||
|
||||
/* get a local copy of the battery data */
|
||||
orb_check(battery_status_sub, &updated);
|
||||
|
||||
if (updated) {
|
||||
orb_copy(ORB_ID(battery_status), battery_status_sub, battery_status);
|
||||
}
|
||||
|
||||
/* get a local copy of the global position data */
|
||||
orb_check(global_position_sub, &updated);
|
||||
|
||||
if (updated) {
|
||||
orb_copy(ORB_ID(vehicle_global_position), global_position_sub, global_pos);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user