I need guidance or an example of how to use joystick buttons to control whether a motor is on or off (the motor is being controlled by a Jaguar). I’m operating using the SimpleRobot Template. Also, although it feels strange to ask this, how do I open the GearsBot Sample code in Windriver?
Note: I’m a complete newbie. I’ve been trying to watch videos and understand WindRiver and the general C++ programming environment but my understanding completely halts at how to access joystick buttons as boolean for if statements. Perhaps I misunderstand C++ at it’s base level, but any help would be wonderful. I am working out of the SimpleTemplate currently, but as for developing past that point I cannot seem to find where to even start on understanding it any better. I’ve watched http://users.wpi.edu/~bamiller/UsingWorkbench/TankDriveSample/TankDriveSample.html as well as the “Intro to Workbench” video. I was hoping to go to
http://thinktank.wpi.edu/article/173 to watch the Programming 101 video, but instead I get an issue where it says the video codec is unable to be played. Considering it’s a .wmv I’m really not sure why it wouldn’t play.
That being said, if there are any videos explaining simple applications of C++ to FRC, that would be great. I apologize in advance for my scattered question, but at this point I’m frantic (I’ve been searching around threads and various forums for help for several days already).
Part of the problem is I can’t deduce exactly -what- my problem is in learning C++, so please ask me questions if it’d help you to help me, or at least show me in the right direction.