|
Re: Reading battery voltage in software
Quote:
Originally Posted by htwiz2002
 Wait! What type of variable is it?!?! When I try to read it it outputs a number greater than 16k!
I'm building a terminal interface (for debugging) it outputs a really strange value when I do:
Code:
printf("%d",battery_voltage);
Can anyone help? 
|
I'm having the same problem, and I cannot figure it out at all!!! I've contacted our main programmer, I tried the code earlier (which gave me a reading of 70), and I've looked over and over in the code.
__________________
Taking a break from mentoring for a few years. (Is that allowed?!?)
Controls Mentor
@rnazaretian
Previous teams:
Team Fusion, FRC 364
Garnet Squadron, FRC 4901
|