From 6ab9b0b91b58ee960024bda2d220ddbc7f889390 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 12 Sep 2013 13:26:12 +1000 Subject: [PATCH] Rover: fixed Vcc --- APMrover2/system.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APMrover2/system.pde b/APMrover2/system.pde index d8541b71b1..49d352b5b5 100644 --- a/APMrover2/system.pde +++ b/APMrover2/system.pde @@ -479,11 +479,11 @@ void flash_leds(bool on) } /* - * Read Vcc vs 1.1v internal reference + * Read board voltage in millivolts */ uint16_t board_voltage(void) { - return vcc_pin->read_latest(); + return vcc_pin->voltage_latest() * 1000; } static void