Thread: Robot Drive
View Single Post
  #7   Spotlight this post!  
Unread 10-02-2012, 23:07
TravSatEE's Avatar
TravSatEE TravSatEE is offline
Spacecraft Engineer and more
FRC #2035 (Robo Rockin' Bots)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Monterey, CA
Posts: 26
TravSatEE is infamous around these partsTravSatEE is infamous around these parts
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().
Reply With Quote