|
Re: Project Questions about Programming and Electrical
Quote:
Originally Posted by Phalanx
Look in ifi_aliases.h, You will find the variables for the battery.
I hope this helps.
/*
*-----------------------------------------------------------------------------------------------------
*---------- Aliases for Battery Voltage bytes --------------------------------------------------------
*-----------------------------------------------------------------------------------------------------
* 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
|
Thanks!
Also, I'm going to add something. I think for the charger, I might have a manual override so I can force it to charge while off (like just a small switch in the back)
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian
Previous mentor and student from Team Fusion, FRC 364
|