|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: WindRiver WPILib problems
Well, looking back at the Tracker program, the values for the green are set in the user routine portion so I don't actually need to edit the WPILib stuff for that. What I'm wondering is say I want to change the ArcadeDrive method to have scaling built in. Is that something that is discouraged and instead we're supposed to put a wrapper method that does the scaling and then calls ArcadeDrive? That just seems like a more complex way to do it because now your code is all spread out.
From the sounds of it though, I take it we're not supposed to modify the WPILib files (even if there is a way). |
|
#2
|
||||
|
||||
|
Re: WindRiver WPILib problems
Dr.Nick,
All you have to do copy the drive function out of WPILib into a new cpp file and rename to something else, then call it in your program. Otherwise you need to download the source, compile it and then change the build properties for you project to point to your own WPILib.a instead of the pre-compiled one. |
|
#3
|
||||
|
||||
|
Re: WindRiver WPILib problems
You can use WPILib pre-compiled?
We've been compiling it every time: given the bugs we've found in the WPI code (InArea, FindColor, and GetLargestParticle so far), it is very useful to be able to modify it. What we did was go into windows explorer, and drag-drop every single CPP and H into our project. This ends up moving them all to your project's directory, and then you can freely modify them while still having a backup in c:\windriver\wpilib Just posted a thread detailing the bugs we found, in case anyone is interested. Last edited by Bongle : 13-01-2009 at 08:25. |
|
#4
|
|||
|
|||
|
Re: WindRiver WPILib problems
Ok, at this point with the drive stuff I guess I'll just do my own functions like you said Kingofl.
Anybody know a relative time frame for the next update to the WPILib? I don't want to go in and start fixing that code if an update is coming this week or something but I also don't want that to stop us from working on it. |
![]() |
| 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 |
| compiling in windriver | koreabell | Programming | 4 | 05-01-2009 15:32 |
| windriver projects | nickmagus | Programming | 4 | 01-12-2008 23:29 |
| WPILib problems under linux | tmbg37 | Programming | 2 | 23-01-2007 23:53 |