Go to Post My crotchety old person opinion is that it should be illegal to try to win the award. Do things because you like doing them or because it helps others. Don't do things to win awards. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 10-31-2012, 06:04 PM
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Example java code?

Quote:
Originally Posted by litterClean View Post
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/
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional

Last edited by F22Rapture : 10-31-2012 at 06:13 PM.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:44 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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