|
Re: Robot Drive
ssirovica: You can always look at WPILIB RobotDrive.java to compare. One thing the RobotDrive tankDrive() does is to square the joystick input magnitude value to change the handling of the robot at smaller joystick movements. This isn't a significant code change, but it has some other benefits (joystick deadband, slightly implements a smoothing filter).
shuhao: How are you implementing a low pass filter? I am curious what you objective is?
gpetilli: That is a good observation about real time systems, but I don't think it applies here. Look at WPILIB IterativeRobot.java line 144. I believe this is where WPILIB object states are updated prior to the execution of teleopPeriodic().
|