
28-01-2007, 23:38
|
 |
 |
Taking a year (mostly) off
 FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
|
|
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
|
|
|
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? 
|
It's a float.
|