![]() |
Black Jaguars and CANBUS 2011
Does anyone have an working example of a simple demo robot that shows how to use the Java 2011 canbus class with the 2011 kit? I want to switch from PWM to CANBUS this year, but need an example to see how it all fits together.
Go FIRST! -Michael Team #1711 |
Re: Black Jaguars and CANBUS 2011
As far as the code goes, just create CANJaguar objects instead of Jaguar objects - for simple driving with a joystick everything else is the same between CAN and PWM. It also helps to do some exception handling when creating the objects, like this:
Code:
while (leftMotor == null && ++maxRetries < 10) {You'll find several threads about all of this in the CAN subforum under Electrical - if you need any further help feel free to ask! - Ron Team #2607 controls mentor |
| All times are GMT -5. The time now is 10:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi