View Single Post
  #4   Spotlight this post!  
Unread 23-03-2012, 13:15
carrillo694's Avatar
carrillo694 carrillo694 is offline
Alex Carrillo
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: New York, NY
Posts: 66
carrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the rough
Re: Knowledge Base for Current Control?

Quote:
Originally Posted by ebarker View Post
A collection of simple example projects in multiple languages would be great.
  • tank drive
  • arcade drive
  • simple position control with a jaguar/victor and a resistive feedback element in a PID
  • encoder projects
  • gyro projects
  • accelerometer
  • vision
Need better examples ( which may already exist ) of dashboard code and usage of DS cypress I/O.
In the documents section of the WPIlib project, you can find info on computer vision. You will also find many examples of tank/arcade drive and sensor usage in the Java/C++ documents, specifically the Cookbook and "Getting Started" guides, as well as the WPIlib users guide. WPIlibj (for Java) also comes with multiple sample projects that implement nearly everything on your list.

Quote:
Originally Posted by ebarker View Post
Need a facility to determine processor load / idle time and get that back to the DS or via telnet/ssh.
I believe the Driver Station reports cRIO CPU load in the "Charts" tab on the far right (I forget the actual name).

Quote:
Originally Posted by ebarker View Post
Need an area for advanced topics such as datalogging both at the DS via the dashboard and onboard the robot either on a local file system or dumped via serial port to an offboard processor.
The SmartDashboard makes data logging trivial. See our Java usage here. This data is sent to a SmartDashboard .jar that can be downloaded here, and in settings in that .jar you can save to a .csv. File writing on the cRIO is also standard I/O; google Java 2 ME File I/O.

In sum, documentation for the items you seek exists, but is not perfectly centralized or communicated. The wpilib project on firstforge.wpi.edu is a good starting point, though.
Reply With Quote