-
Notifications
You must be signed in to change notification settings - Fork 0
Home
https://www.chiefdelphi.com/t/anyone-use-a-custom-pid-loop-with-feed-forward-in-2019/359040
https://docs.wpilib.org/en/stable/docs/software/dashboards/advantagescope.html
-
figure out why this page wont look the way I want
-
get python deployed to the robot (
print("hello world")
) -
get a motor moving
-
get sensor readings working
3a. get data from an encoder
3b. ensure that the data is converted to the correct units using a wpilibRotation2D
3c. zero the encoders, DONT do this by adding a local constant to the encoder output, instead be tune it using Phoenix Tuner X
3d. make sure that the bevel gears in the zeroed configuration are all facing the same direction
3e. double check that the data is what you expect, eg. when the wheels turn to face the same direction, the values are roughly the same\ -
set up advantage scope / logging tools
4a. this one is new for us this year, there will be some hurdles to climb over\ -
set up basic closed loop control for the swerve module turn motors
5a. pretty sure that the spark maxes have a built in PIDF controller, so maybe use that if it will make our lives easy otherwise use WPILib's controller\ -
use the measurements from the logging tools to analyze the motion profile & error/time of the turn motor
-
tune the swerve drive module turn motors
-
find out what steps Zach forgot
?. set up open loop and closed loop control for the drive motors
?a. this is where advantage scope should come in handy
?b. the SwerveModule
class will receive speeds in the form of a SwerveModuleState
which has speed in m/s
8ba. the
?. create a structure (aka subsystem) to manage our 4 swerve modules
?a. make sure that the subsystem takes in a ChassisSpeeds
and then sets the motors to do what we expect