mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Simple app: fix code style
This commit is contained in:
@@ -89,7 +89,7 @@ int px4_simple_app_main(int argc, char *argv[])
|
|||||||
if (error_counter < 10 || error_counter % 50 == 0) {
|
if (error_counter < 10 || error_counter % 50 == 0) {
|
||||||
/* use a counter to prevent flooding (and slowing us down) */
|
/* use a counter to prevent flooding (and slowing us down) */
|
||||||
PX4_ERR("[px4_simple_app] ERROR return value from poll(): %d"
|
PX4_ERR("[px4_simple_app] ERROR return value from poll(): %d"
|
||||||
, poll_ret);
|
, poll_ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
error_counter++;
|
error_counter++;
|
||||||
@@ -102,9 +102,9 @@ int px4_simple_app_main(int argc, char *argv[])
|
|||||||
/* copy sensors raw data into local buffer */
|
/* copy sensors raw data into local buffer */
|
||||||
orb_copy(ORB_ID(sensor_combined), sensor_sub_fd, &raw);
|
orb_copy(ORB_ID(sensor_combined), sensor_sub_fd, &raw);
|
||||||
PX4_WARN("[px4_simple_app] Accelerometer:\t%8.4f\t%8.4f\t%8.4f",
|
PX4_WARN("[px4_simple_app] Accelerometer:\t%8.4f\t%8.4f\t%8.4f",
|
||||||
(double)raw.accelerometer_m_s2[0],
|
(double)raw.accelerometer_m_s2[0],
|
||||||
(double)raw.accelerometer_m_s2[1],
|
(double)raw.accelerometer_m_s2[1],
|
||||||
(double)raw.accelerometer_m_s2[2]);
|
(double)raw.accelerometer_m_s2[2]);
|
||||||
|
|
||||||
/* set att and publish this information for other apps */
|
/* set att and publish this information for other apps */
|
||||||
att.roll = raw.accelerometer_m_s2[0];
|
att.roll = raw.accelerometer_m_s2[0];
|
||||||
@@ -118,6 +118,7 @@ int px4_simple_app_main(int argc, char *argv[])
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PX4_INFO("exiting");
|
PX4_INFO("exiting");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user