mirror of
https://github.com/okalachev/flix.git
synced 2026-01-13 14:36:45 +00:00
Make motor indexes definition const int and move them to motors.ino
Remove motor indexes definitions from flix.ino Add motors.ino to simulation code and implement required mocks
This commit is contained in:
@@ -14,6 +14,12 @@
|
||||
#define PWM_MIN 0
|
||||
#define PWM_MAX 1000000 / PWM_FREQUENCY
|
||||
|
||||
// Motors array indexes:
|
||||
const int MOTOR_REAR_LEFT = 0;
|
||||
const int MOTOR_REAR_RIGHT = 1;
|
||||
const int MOTOR_FRONT_RIGHT = 2;
|
||||
const int MOTOR_FRONT_LEFT = 3;
|
||||
|
||||
void setupMotors() {
|
||||
Serial.println("Setup Motors");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user