mirror of
https://github.com/okalachev/flix.git
synced 2025-07-29 12:28:59 +00:00
Remove non-working fullmot command
This commit is contained in:
parent
7a2f2d955b
commit
b015c15a7e
@ -30,8 +30,7 @@ const char* motd =
|
|||||||
"cr - calibrate RC\n"
|
"cr - calibrate RC\n"
|
||||||
"cg - calibrate gyro\n"
|
"cg - calibrate gyro\n"
|
||||||
"ca - calibrate accel\n"
|
"ca - calibrate accel\n"
|
||||||
"mfr, mfl, mrr, mrl - test appropriate motor\n"
|
"mfr, mfl, mrr, mrl - test motor\n"
|
||||||
"fullmot <n> - full motor test\n"
|
|
||||||
"reset - reset drone's state\n";
|
"reset - reset drone's state\n";
|
||||||
|
|
||||||
const struct Param {
|
const struct Param {
|
||||||
@ -102,8 +101,6 @@ void doCommand(String& command, String& value) {
|
|||||||
cliTestMotor(MOTOR_REAR_RIGHT);
|
cliTestMotor(MOTOR_REAR_RIGHT);
|
||||||
} else if (command == "mrl") {
|
} else if (command == "mrl") {
|
||||||
cliTestMotor(MOTOR_REAR_LEFT);
|
cliTestMotor(MOTOR_REAR_LEFT);
|
||||||
} else if (command == "fullmot") {
|
|
||||||
fullMotorTest(value.toInt());
|
|
||||||
} else if (command == "reset") {
|
} else if (command == "reset") {
|
||||||
attitude = Quaternion();
|
attitude = Quaternion();
|
||||||
} else {
|
} else {
|
||||||
|
@ -37,14 +37,3 @@ void sendMotors() {
|
|||||||
ledcWrite(MOTOR_2_PIN, signalToDutyCycle(motors[2]));
|
ledcWrite(MOTOR_2_PIN, signalToDutyCycle(motors[2]));
|
||||||
ledcWrite(MOTOR_3_PIN, signalToDutyCycle(motors[3]));
|
ledcWrite(MOTOR_3_PIN, signalToDutyCycle(motors[3]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void fullMotorTest(int n) {
|
|
||||||
printf("Full test for motor %d\n", n);
|
|
||||||
for (float signal = 0; signal <= 1; signal += 0.1) {
|
|
||||||
printf("Motor %d: %f\n", n, signal);
|
|
||||||
ledcWrite(n, signalToDutyCycle(signal));
|
|
||||||
delay(3000);
|
|
||||||
}
|
|
||||||
printf("Motor %d: %f\n", n, 0);
|
|
||||||
ledcWrite(n, signalToDutyCycle(0));
|
|
||||||
}
|
|
||||||
|
@ -57,7 +57,6 @@ inline Quaternion FLU2FRD(const Quaternion &q);
|
|||||||
void setLED(bool on) {};
|
void setLED(bool on) {};
|
||||||
void calibrateGyro() { printf("Skip gyro calibrating\n"); };
|
void calibrateGyro() { printf("Skip gyro calibrating\n"); };
|
||||||
void calibrateAccel() { printf("Skip accel calibrating\n"); };
|
void calibrateAccel() { printf("Skip accel calibrating\n"); };
|
||||||
void fullMotorTest(int n) { printf("Skip full motor test\n"); };
|
|
||||||
void sendMotors() {};
|
void sendMotors() {};
|
||||||
void printIMUCal() { printf("cal: N/A\n"); };
|
void printIMUCal() { printf("cal: N/A\n"); };
|
||||||
void printIMUInfo() {};
|
void printIMUInfo() {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user