Refactor calibration constants and update travel snippet documentation

This commit is contained in:
alvinlollo
2026-10-09 15:01:43 +11:00
parent 1c241952fb
commit 39f561a23f
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -1,11 +1,15 @@
#include <Studuino.h>
#include <Clock.h> // Keep the complete smoke-test dependency set in clangd's database.
// DC Motor Calibration (0-100)
#define M1_CALIB 100
#define M2_CALIB 100
Studuino board;
void setup() {
board.InitSensorPort(PORT_A0, PIDLED);
byte calib[] = { 100, 100 };
byte calib[] = { M1_CALIB, M2_CALIB };
board.SetDCMotorCalibration(calib);
}