Changes between Version 15 and Version 16 of ControlSystems/SoftwareTeam/Training/GettingStarted/ClosedLoopControl
- Timestamp:
- Nov 16, 2019, 11:28:11 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/ClosedLoopControl
v15 v16 10 10 Notice that there are two critical values in this control loop: 11 11 * How often the control loop runs (every 0.25 seconds in the above example) 12 * How much the control loop adjusts the power based on the sensed inputs (kP=0.01 in the above example)12 * How much the control loop adjusts the power based on the difference (error) measured between the encders (kP=0.01 in the above example) 13 13 * Try printing the error and adjusted motor powers using System.out.println(...) to see what adjustments are taking place. 14 14