View Single Post
  #2   Spotlight this post!  
Unread 17-01-2002, 19:50
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: PBASIC access to 1 pin only

Quote:
Originally posted by diego25
Hi all,
How can I output voltage to one of the PWM pins only? If I use SEROUT, I also have to specify all the other pins, including the relay pins.
The PBASIC processor we actually program on the robot is not directly connected to the outputs of the Robot Controller, rather, it is run through an "output processor" within the RC. Therefore, you have to use the SEROUT command as shown within the default code to communicate with any of the outputs, relay or PWM. Due to the internal nature of the Innovation First Control System, the PWM command in PBASIC is not of much(if any!) use to us...just send a 0-254 value using SerOut to talk to the Speed Controllers...
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...