|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
SimpleRobot Windriver issues...
So I just started to mess around with WindRiver on an old robot outfitted with a cRio and the who 2009 electronics equipment, when I ran into a couple of issues... here are some of the questions which arose:
1) Whenever I changed the "SimpleRobot" code, I right clicked on the program name in the explorer windom, and clicked "build"... then I clicked on First-->download... is this the correct way to upload code to the cRio or is there a better/proper way, or what? 2) Because of (possibly) some weird wiring issues, it took me some time to finally get the robot to respond to the joystick, as it should in "SimpleRobot"... but, as it turned out... the x and y axis were backwards... I have looked everywhere and tried a lot of things in the code to fix this issue, but came to no change... can someone please tell me exactly how to change the x and y axis control when it comes to the "SimpleRobot" program in WindRiver? I am sure more questions will arise from me soon enough, as I am completely new to WindRiver, which makes me absolutely oblivious, besides what I can actually piece together from my knowledge of other C++ libraries... But yea, if someone could help me out that would be great, and would be appreciated tremendously... ![]() |
|
#2
|
|||||
|
|||||
|
Re: SimpleRobot Windriver issues...
Quote:
The appropriate fix is either to swap the wiring on the "backwards" motor, or to tell the software that the motor control on one side or the other needs to be inverted. The software fix is applied when you instantiate the arcade drive. |
|
#3
|
|||
|
|||
|
Re: SimpleRobot Windriver issues...
I am guessing you are talking about the leads going directly to the motor (from the jaguar) being backward.... well that does make sense, so I can check... but wow thats really pathetic that this issue on the robot has gone unnoticed for about 2 years now... hopefully ure right
|
|
#4
|
|||||
|
|||||
|
Re: SimpleRobot Windriver issues...
Quote:
The WPI library has a place to say "please invert this motor" in the drivetrain definition. That's probably all you need to do. |
|
#5
|
||||
|
||||
|
Re: SimpleRobot Windriver issues...
to build,(make sure you have a Remot esystem connection, look in C:\Windriver\docs\frc\C programming guide for frc.pdf for details) right click project (dont need to build)> Run kernel task and the entry point is FRC_UserProgram_StartupLibraryInit then hit Run. It will download, and run. Reboot to stop debugging and get rid of the file on the crio
also, the joystick Y (forward and back) forward is negative, back is positive |
|
#6
|
|||
|
|||
|
Re: SimpleRobot Windriver issues...
I have just spend 2 hours looking through the code and the manual(s) and still have no idea how to invert the motors... exactly in which file should I look?
|
|
#7
|
|||||
|
|||||
|
Re: SimpleRobot Windriver issues...
Quote:
|
|
#8
|
|||
|
|||
|
Re: SimpleRobot Windriver issues...
Thanks, but nevermind, I found that right after I posted the question...
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windriver LAC | McGurky | C/C++ | 12 | 25-02-2009 18:38 |
| Windriver on Mac? | jasonpeinko | C/C++ | 3 | 02-02-2009 21:36 |
| WindRiver errors | dnrobotics11 | C/C++ | 1 | 27-01-2009 20:44 |
| WindRiver Installation Issues - can you help a brother out? | tdressel | C/C++ | 1 | 08-01-2009 00:42 |