|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
WPIlib beta for VEX
Hi,
I downloaded the Beta version of WPILIB for vex found at http://users.wpi.edu/~bamiller/WPILib/WPILib060719.zip during early October 2006. I got it to only sort of work. Using a mingw makefile and calling the microchip compiler that comes with easyc 1.1 and the vanilla vex programming kit, along with the version of the makefile that Jeff Garbers had posted awhile back, I managed to get his example to compile, link, download and run motors- so far so good. I then modified that makefile to point to a directory with the contents of WPILib060719.zip as follows:
This has allowed me to compile and link with no complaints from the microchip compiler. I believe the linker is no longer looking at the libraries originally from vex, but only at the WPIlib libraries and object files. I then compile this code, and download it to the vex controller: It runs, and the text output can be seen in the serial terminal window in the downloader application, just as you would expect from the code. However, the motors just do not get any power. I tried calling SetPWM() in a similar fashion with no luck there either. As a pot-shot, I tried adding this to the c source: There are 17 parameters in this call, and it compiles in Jeff Garber's example. The WPIlib prototype for this function seems to takes 18 parameters. I added another 0 into the parameter list, recompiled and downloaded, and got the same result - good serial communications back to the downloader window, but no motors. I must just be missing something here, but I'm not sure what. Any advice regarding what I might be doing wrong would be appreciated. Thanks to you guys putting this stuff out for guys like me to use. Your efforts are appreciated! -Kurt |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vex Announcement: FIRST Vex Challenge Extended for 2006-2007 | KathieK | FIRST Tech Challenge | 14 | 30-07-2006 23:42 |
| WPILib - Library for robot programming | BradAMiller | Programming | 7 | 21-06-2006 03:12 |
| Using WPILib on a Vex robot | koenig3456 | Programming | 2 | 02-05-2006 14:56 |
| STAMP version 1.0 (NOT BETA) is out for week 1! | Ethulin | Scouting | 5 | 01-03-2006 18:50 |
| Gmail Now Beta For Blogger.Com Users | Joe Matt | Chit-Chat | 3 | 26-04-2004 17:10 |