View Single Post
  #9   Spotlight this post!  
Unread 07-03-2004, 10:13
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Battery Voltages in Dashboard

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.
__________________
AIM --> Woloi
Email --> ian@woloschin.com