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]