mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
frsk_telemetry: astyle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user