This commit is contained in:
Oleg Kalachev
2026-01-09 09:45:23 +03:00
parent 69fb5d30f6
commit 213b9788a9
2 changed files with 1 additions and 11 deletions

View File

@@ -4,6 +4,7 @@
// Flight control
#include "config.h"
#include "flix.h"
#include "vector.h"
#include "quaternion.h"
#include "pid.h"

View File

@@ -9,17 +9,6 @@
#include "flix.h"
#include "util.h"
#define MOTOR_0_PIN 12 // rear left
#define MOTOR_1_PIN 13 // rear right
#define MOTOR_2_PIN 14 // front right
#define MOTOR_3_PIN 15 // front left
#define PWM_FREQUENCY 78000
#define PWM_RESOLUTION 10
#define PWM_STOP 0
#define PWM_MIN 0
#define PWM_MAX 1000000 / PWM_FREQUENCY
float motors[4]; // normalized motor thrusts in range [0..1]
extern const int MOTOR_REAR_LEFT = 0;