![]() |
Re: CANJaguar
Quote:
His code will compile and run as it was, it's just not going to do what he expected it to. |
Re: CANJaguar
Quote:
|
Re: CANJaguar
Could someone kindly tell me where you found documentation on using CAN under Java? I've searched in the "Getting Started with JAVA", "WPI Robotics Library User’s Guide", and "WPI Library Cookbook" publications, but have somehow missed it if it is in there. Went back to First Forge, but couldn't locate any additional documentation that seemed like it would point me in the right direction.
If anyone knows of an example project, that would be appreciated as well. Thanks, Steve |
Re: CANJaguar
Quote:
|
Re: CANJaguar
Quote:
That should also help some what. |
Re: CANJaguar
Thanks guys, I downloaded the NI doc and will look at that tonight.
I had found the wrobotics site via Google, but as I'm new to Java, it is still a bit cryptic to my eyes. I'm wondering where they found that reference. I do wish it gave some examples. Looks like it originated at WPI, but scouring FIRST Forge turned up nada. Thanks to them for putting it up. I'll keep watching this thread to see what success you have. Share ours as well (assuming we achieve some.) Thanks again, Steve |
Re: CANJaguar
the info posted on the wrobotics site is called a JavaDoc, and it's a standard form of documentation that can be generated from JAva code automatically (as long as it'a commented properly). The JAvadocs for WPILib is distributed with the plugin package that you installed.
You can access these files locally on your machine by clicking the first logo in the bar at the top of NetBeans (Assuming that's what you're using), it should be the first link on the page that loads. Check out some helpful guides on my teams site on: Getting started with Java: Lecture 1, Lecture 2 JavaDocs: Intro/Setup, Use CAN Jaguars You're going to want to focus on the CANJaguar class. Use is as simple as placing the following lines in the right places in your code. Code:
import edu.wpi.first.wpilibj.CANJaguar; |
| All times are GMT -5. The time now is 11:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi