setRadSToPercent¶
-
void
setRadSToPercent(float motor1_RadS, float motor2_RadS, float motor3_RadS)¶ Converts and sets radians per second for each motor into their respective percents. This should only be used in the PI controller.
- Parameters
motor1_RadS: Motor 1’s speed in radians per second.motor2_RadS: Motor 2’s speed in radians per second.motor3_RadS: Motor 3’s speed in radians per second.
Example¶
1 | setRadSToPercent(2.0, -1.0, 3.0);
|
Sets motor 1 to the equivalent percent for 2 rad/s, motor 2 to the equivalent -1.0 rad/s, and motor 3 to the equivalent 3.0 rad/s.
Function Variables¶
Note
This functions depends on global variables.
Type |
Name |
Description |
|---|---|---|
|
|
The raw calculated percent for motor 1 |
|
|
The raw calculated percent for motor 2 |
|
|
The raw calculated percent for motor 3 |