Thread: Battery voltage
View Single Post
  #5   Spotlight this post!  
Unread 22-12-2003, 08:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Battery voltage

Quote:
Originally Posted by Josh Siegel
Thanks for the reply, but I have one question:
That looks like it will hold a variable, but will it read from the edu board? thanks so much
I don't have last year's EDU controller handy to verify the PBasic code. It's now locked in the school for the holiday break. We used this code with the 2003 Full RC. The Serin is the Read that loads the variable. You shouldn't be getting 127 in any case. That's neutral on a joystick or wheel input not a voltage. Based on the symptom I would guess that your Serin variable order isn't correct (i.e., bat_volt is falling on one of your wheel inputs. It should be where the EDU default code had sensor8) or the serin flags don't match the serin list of variables. e.g.,

c_p1_y CON 1
c_p1_x CON 1
...
c_p1_wheel CON 1
...
c_batt_volt CON 1

Serin COMA\COMB, INBAUD, [p1_x, p1_y, p1_wheel, bat_volt]
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-12-2003 at 11:57.