mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 03:13:33 +08:00
changed int to float
This commit is contained in:
@@ -490,7 +490,7 @@ static bool powerCheck(orb_advert_t *mavlink_log_pub, bool report_fail, bool pre
|
|||||||
if (hrt_elapsed_time(&system_power.timestamp) < 200000) {
|
if (hrt_elapsed_time(&system_power.timestamp) < 200000) {
|
||||||
|
|
||||||
/* copy avionics voltage */
|
/* copy avionics voltage */
|
||||||
int avionics_power_rail_voltage = system_power.voltage5V_v;
|
float avionics_power_rail_voltage = system_power.voltage5V_v;
|
||||||
|
|
||||||
// avionics rail
|
// avionics rail
|
||||||
// Check avionics rail voltages
|
// Check avionics rail voltages
|
||||||
|
|||||||
Reference in New Issue
Block a user