Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 656 Bytes

File metadata and controls

10 lines (6 loc) · 656 Bytes

Motor Speed Control

Use an Xbox Controller to set the speed of a single Neo motor with a PID controller and feedforward. Speed, PID and feedforward constants are adjustable from a dashboard.

  • Run forward at fixed speed when the right trigger is held and backward when the left trigger is held.
  • Run forward/reverse proportional to left joystick forward/backward

Fixed speed is adjustable from a dashboard for each trigger press, but other values need to be changed while disabled.

In simulation mode a DCMotorSim is run to model the dynamics of the motor and controller, and this mode can be used for training PIDF control of a flywheel subsystem.