View Single Post
  #12   Spotlight this post!  
Unread 07-07-2015, 11:58
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: How do you use the WPILib?

What classes do you use the most?
IterativeRobot, Jaguar/Talon/Victor etc. DoubleSolenoid... DigitalInput... Encoder... you know, your basic I/O stuff.
And SmartDashboard.

Do you edit any of the provided classes?
We don't modify source... but...

Do you extend any of the provided classes?
YES. Most classes get extended:
1. Joystick gets a custom class with stuff like GetButtonTripped(), GetLX(), GetLMagnitude(), GetLAngle(), etc. specific to the joystick mapping.
2. Jaguar/Talon/Victor have:
- A "invert" flag so we can wire correct colors AND have our higher level code look like what corresponds to what is going on (I.E. invert one side of a tank drivetrain)
- A throttle variable so we can slowly ramp up/down a motor

What features do you wish WPILib had?
Having the invert flag built into the SpeedController interface would be nice.
An intelligent SmartDashboard which guaruntees values will exist for the client to modify. I.E. SmartDashboard.guarunteeValue("Gyro KP", 1.5);
I know it isn't really WPILib, but fixing SmartDashboard so it actually retains layouts and values would be great. WPILib is nice and stable, not much to change. It's the other tools that are icky.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage