Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Example java code? (http://www.chiefdelphi.com/forums/showthread.php?t=109348)

litterClean 31-10-2012 14:25

Example java code?
 
Hey, our Team is having trouble creating working java code. We are able to communicate with the Crio, however we can't get any of the four cims, which are controlled by jaguars, to work. Does anyone happen to have some basic example java code for consoling a robot with four cims?

F22Rapture 31-10-2012 18:04

Re: Example java code?
 
Quote:

Originally Posted by litterClean (Post 1192330)
Hey, our Team is having trouble creating working java code. We are able to communicate with the Crio, however we can't get any of the four cims, which are controlled by jaguars, to work. Does anyone happen to have some basic example java code for consoling a robot with four cims?


Command-Based or Iterative style? CAN or PWM?

The FRC Java starter guide covers the drivetrain code for Iterative starting on page 11

http://firstforge.wpi.edu/sf/docman/...tation/doc1199

The WPILib programming cookbook covers the Command-Based drivetrain starting on page 14

http://www.wbrobotics.com/attachment...ibCookbook.pdf

There's going to be a few minor differences from both of those documents if you're using CAN or an arcade drive however.

Most of the other code I've come across in teams public repositories is more complex than that in the documents, but if you'd like to look at that as well:

https://github.com/Neal/VikingsBot-2...vikingrobotics
https://github.com/frc3946/ReboundRu...reboundrumble/


All times are GMT -5. The time now is 09:57.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi