mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 17:16:10 +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:
@@ -12,11 +12,6 @@
|
||||
|
||||
#define RC_CHANNELS 16
|
||||
|
||||
#define MOTOR_REAR_LEFT 0
|
||||
#define MOTOR_FRONT_LEFT 3
|
||||
#define MOTOR_FRONT_RIGHT 2
|
||||
#define MOTOR_REAR_RIGHT 1
|
||||
|
||||
#define WIFI_ENABLED 1
|
||||
|
||||
#define ONE_G 9.80665
|
||||
@@ -43,6 +38,7 @@ void controlAttitude();
|
||||
void controlRate();
|
||||
void controlTorque();
|
||||
void showTable();
|
||||
void sendMotors();
|
||||
bool motorsActive();
|
||||
void cliTestMotor(uint8_t n);
|
||||
String stringToken(char* str, const char* delim);
|
||||
@@ -61,7 +57,6 @@ inline Quaternion FLU2FRD(const Quaternion &q);
|
||||
void setLED(bool on) {};
|
||||
void calibrateGyro() { printf("Skip gyro calibrating\n"); };
|
||||
void calibrateAccel() { printf("Skip accel calibrating\n"); };
|
||||
void sendMotors() {};
|
||||
void printIMUCal() { printf("cal: N/A\n"); };
|
||||
void printIMUInfo() {};
|
||||
Vector accBias, gyroBias, accScale(1, 1, 1);
|
||||
|
Reference in New Issue
Block a user