![]() |
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... |
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:
|
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" |
Re: New version of WPILib
Quote:
|
Re: New version of WPILib
Got it. Thanks!
DCBrown |
Re: New version of WPILib
Quote:
Regards, DCBrown |
Re: New version of WPILib
Quote:
|
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. |
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 |
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. |
Re: New version of WPILib
Quote:
Thanks for the quick response! -Joe |
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? |
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. |
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 |
Re: New version of WPILib
Quote:
Oh yeah! :D Compiles and runs fine now, thanks! :rolleyes: |
| All times are GMT -5. The time now is 13:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi