|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
New version of WPILib
There is a new version of WPILib that will automatically operate the compressor if connected in the background. You need to call:
Code:
InitPressureSwitch(unsigned char pressureSwitchPort, unsigned char relayPort) You can pick up the new version from the WPILib web site. Enjoy... |
|
#2
|
|||
|
|||
|
Re: New version of WPILib
There is a new version of WPILib on the web site that has some changes that were just added today to help us with some motor control. So here you go:
|
|
#3
|
|||
|
|||
|
Re: New version of WPILib
Tried to download the zip file, got the following error:
"You don't have permission to access /~bamiller/WPILib/WPILib060122.zip on this server" |
|
#4
|
|||
|
|||
|
Re: New version of WPILib
Quote:
|
|
#5
|
|||
|
|||
|
Re: New version of WPILib
Got it. Thanks!
DCBrown |
|
#6
|
|||
|
|||
|
Re: New version of WPILib
Quote:
Regards, DCBrown |
|
#7
|
|||
|
|||
|
Re: New version of WPILib
Quote:
|
|
#8
|
|||
|
|||
|
Re: New version of WPILib
There is another new version of WPILib that has the following changes:
1. The capture camera packet functions now have a one second timeout. If the timeout happens, then zeros are returned for all data. 2. A bug in the servo control code was fixed where it was sending bad values when the middle digit was zero in a three digit servo value. 3. There are functions to read the backup and main battery voltages. You can get it from my website and following the links to the software. As always please post any problems that you might encounter. |
|
#9
|
|||
|
|||
|
Re: New version of WPILib
Quote:
I'm attempting to compile a student's program that was written and exported from EasyC. I don't have EasyC and as such I'm using MPLab and your library to build the project. Everything goes well until the link step. It then notifies me that the "Coff file format is out of date" for the objects in the lib file. It wants to rebuild the library, but I obviously don't have the source. Naturally, Microchip changed their coff format with the new version of their compiler. I'm using version 3.01 of the compiler, which comes with version 4.01 of the linker. Can you post the source to the library so it can be rebuilt? If not, what version are you using to build the library so I can downgrade? Thanks, -Joe |
|
#10
|
|||
|
|||
|
Re: New version of WPILib
Quote:
To be sure, I'd suggest switching to those versions of the tools. You can get them from the CD that was included in the kit of parts. |
|
#11
|
|||
|
|||
|
Re: New version of WPILib
Quote:
Thanks for the quick response! -Joe |
|
#12
|
|||
|
|||
|
Re: New version of WPILib
I've updated our EasyC with the new libraries. To test I added
InitPressureSwitch(1,2); to our code and built it. It returned no errors but a warning that the above function call had no prototype. I'm not sure how to rectify this with EasyC, any thoughts? |
|
#13
|
|||
|
|||
|
Re: New version of WPILib
Quote:
There are additional functions in Builtins.h that you might also want to use. They are documented (mostly) in the PDF file. |
|
#14
|
|||
|
|||
|
Re: New version of WPILib
Hi Brad...
I started coding up our full application using WPILib but I ran across a big difference between the documentation and what I assume are new functions. In the userAPI.h file, there are two camera functions: void InitCamera(unsigned char cameraInitIndex); void CaptureTrackingData( unsigned char *centerX, unsigned char *centerY, unsigned char *x1, unsigned char *y1, unsigned char *x2, unsigned char *y2, unsigned char *regionSize, unsigned char *confidence, unsigned char *pan, unsigned char *tilt); The first is obviously a changed version of InitializeCamera() and the second must be new. Could you give a quick rundown of how they work, especially the 'cameraInitIndex' parameter of InitCamera() ? And how do we set camera parameters as there is no place to set up a CameraInitializationData struct. Thanks |
|
#15
|
|||
|
|||
|
Re: New version of WPILib
Quote:
Oh yeah! Compiles and runs fine now, thanks! ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Welcome to the WPILib forum | BradAMiller | Programming | 22 | 25-03-2008 22:44 |
| WPILib - Library for robot programming | BradAMiller | Programming | 7 | 21-06-2006 03:12 |
| openFIRST Project Announces Pending Deadline for End of Support for Old Versions | Timothy D. Ginn | FIRST-related Organizations | 0 | 11-07-2005 22:40 |
| Flash Version of Playing Field | Conor Ryan | General Forum | 49 | 30-01-2005 20:08 |
| Does anyone know if we can use the version of Backburner from the 3DSMax trial ver? | lnxpenguin4ever | 3D Animation and Competition | 2 | 26-01-2005 19:58 |