Quote:
|
Originally Posted by Jay Lundy
This is probably what you're looking for. Straight from ifi_aliases.h
/* Formula to calculate voltage in volts:
* current_voltage = battery_voltage * 0.038 + 0.05;
*/
#define battery_voltage rxdata.rc_main_batt*15.64/256
#define backup_voltage rxdata.rc_backup_batt*15.64/256
|
I thought that'd be it too, but it seems to be off by -0.5 volts on the main battery voltage, and off by at least 0.6 volts on the backup battery voltage. I might try to grab several values while powering up as many motors as I can, so I can grab a high voltage number and a low voltage number and hope they used a linear scale, but that'll most likely have to wait till SBPLI, which is just under two weeks away.