|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#9
|
|||||
|
|||||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|