You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ battery.getFiltered()
16
16
17
17
#### Returns
18
18
19
-
*_getRaw()_: returns the raw ADC read from the battery as am integer.
19
+
*_getRaw()_: returns the raw ADC read from the battery as an integer.
20
20
*_getConverted()_: returns the battery voltage converted to volts as a floating point.
21
21
*_getFiltered()_: returns the battery voltage converted to volts and filtered in the last 10 seconds.
22
22
@@ -110,12 +110,12 @@ Allow setting Motor1 or Motor2 to a specific speed or position. There are two PI
110
110
#### Syntax
111
111
112
112
```
113
-
pid1.setGains(int P, int I, int D)
113
+
pid1.setGains(float P, float I, float D)
114
114
```
115
115
116
116
#### Functions
117
117
118
-
*_setGains(float P, float I, float D)_: Set PID gains. (`int` type for MKRMotorCarrier)
118
+
*_setGains(float P, float I, float D)_: Set PID gains.
119
119
*_resetGains()_: Reset PID gains to factory default settings.
120
120
*_setControlMode(cl_control)_: Set control mode to either `CL_VELOCITY` or `CL_POSITION`.
121
121
*_setSetpoint(cl_mode, int target)_: Set a specific velocity or position in one of the motors. Define cl_mode as `TARGET_POSITION` or `TARGET_VELOCITY` and the desired value in target.
0 commit comments