View Single Post
  #1   Spotlight this post!  
Unread 07-01-2009, 15:35
RKElectricalman's Avatar
RKElectricalman RKElectricalman is offline
Meezy the Mentor
AKA: Rameez
FRC #0384 (Sparky 384)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Richmond, Va
Posts: 88
RKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really nice
Send a message via AIM to RKElectricalman
Question Basic functions in windriver

I've searched, and searched but I just frustrate myself more. I can't see to find out how to do a few basic things I was able to do in MpLab on the old control system. I don't know how to use WPILib to my advantage just yet, and through all this complexity I just need to know how to do a few simple things!

First off, how would I go about writing code for a joystick in which an axis controls the speed of the motor?

how would assign a joystick to a pwm? (Same as above pretty much)

how would I invert a motor in code?

where can I find out what variables I can use for C++ in Windriver?

How do I program a button?

In most posts people have been directed to the FRC control systems page, but I don't see anything helpful. Maybe i'm missing something, but if anyone could show me some sample code or pass some links to show me the right direction I would be eternally grateful. And if you're really in the mood to help, maybe you everyone could throw in some extra bit with other "simple" functions that people could reference from this post.

Thanks in advance!
-Rameez
__________________
ahhh Division Finalists!!