mirror of
https://github.com/okalachev/flix.git
synced 2026-09-06 00:10:58 +00:00
Minor fixes and updates
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ extern float motors[4];
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
print("Initializing flix\n");
|
||||
print("Initializing Flix\n");
|
||||
setupParameters();
|
||||
setupPower();
|
||||
setupLED();
|
||||
|
||||
+1
-2
@@ -17,7 +17,7 @@ int pwmMax = -1; // -1 means duty cycle mode
|
||||
const int MOTOR_REAR_LEFT = 0, MOTOR_REAR_RIGHT = 1, MOTOR_FRONT_RIGHT = 2, MOTOR_FRONT_LEFT = 3;
|
||||
|
||||
void setupMotors() {
|
||||
print("Setup Motors\n");
|
||||
print("Setup motors\n");
|
||||
// Configure pins
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (motorPins[i] < 0) continue; // skip unassigned motors
|
||||
@@ -25,7 +25,6 @@ void setupMotors() {
|
||||
pwmFrequency = ledcChangeFrequency(motorPins[i], pwmFrequency, pwmResolution); // when reconfiguring
|
||||
}
|
||||
sendMotors();
|
||||
print("Motors initialized\n");
|
||||
}
|
||||
|
||||
void sendMotors() {
|
||||
|
||||
Reference in New Issue
Block a user