mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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 */
|
/* get a local copy of the current sensor values */
|
||||||
orb_check(sensor_sub, &updated);
|
orb_check(sensor_sub, &updated);
|
||||||
|
|
||||||
if (updated) {
|
if (updated) {
|
||||||
orb_copy(ORB_ID(sensor_combined), sensor_sub, raw);
|
orb_copy(ORB_ID(sensor_combined), sensor_sub, raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get a local copy of the battery data */
|
/* get a local copy of the battery data */
|
||||||
orb_check(battery_status_sub, &updated);
|
orb_check(battery_status_sub, &updated);
|
||||||
|
|
||||||
if (updated) {
|
if (updated) {
|
||||||
orb_copy(ORB_ID(battery_status), battery_status_sub, battery_status);
|
orb_copy(ORB_ID(battery_status), battery_status_sub, battery_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get a local copy of the global position data */
|
/* get a local copy of the global position data */
|
||||||
orb_check(global_position_sub, &updated);
|
orb_check(global_position_sub, &updated);
|
||||||
|
|
||||||
if (updated) {
|
if (updated) {
|
||||||
orb_copy(ORB_ID(vehicle_global_position), global_position_sub, global_pos);
|
orb_copy(ORB_ID(vehicle_global_position), global_position_sub, global_pos);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user