mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
Remove a debugging print
This commit is contained in:
parent
3b2196354f
commit
82338f2571
@ -113,7 +113,6 @@ static void read_battery(void)
|
||||
|
||||
if(g.battery_monitoring == 3 || g.battery_monitoring == 4)
|
||||
battery_voltage1 = BATTERY_VOLTAGE(analogRead(BATTERY_PIN_1)) * .1 + battery_voltage1 * .9;
|
||||
Serial.print("Raw current: "); Serial.println(analogRead(CURRENT_PIN_1));
|
||||
if(g.battery_monitoring == 4) {
|
||||
current_amps1 = CURRENT_AMPS(analogRead(CURRENT_PIN_1)) * .1 + current_amps1 * .9; //reads power sensor current pin
|
||||
current_total1 += current_amps1 * (float)delta_ms_medium_loop * 0.0002778; // .0002778 is 1/3600 (conversion to hours)
|
||||
|
Loading…
Reference in New Issue
Block a user