mirror of
https://github.com/okalachev/flix.git
synced 2026-01-10 21:16:50 +00:00
Fixes
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
// Flight control
|
// Flight control
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "flix.h"
|
||||||
#include "vector.h"
|
#include "vector.h"
|
||||||
#include "quaternion.h"
|
#include "quaternion.h"
|
||||||
#include "pid.h"
|
#include "pid.h"
|
||||||
|
|||||||
@@ -9,17 +9,6 @@
|
|||||||
#include "flix.h"
|
#include "flix.h"
|
||||||
#include "util.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]
|
float motors[4]; // normalized motor thrusts in range [0..1]
|
||||||
|
|
||||||
extern const int MOTOR_REAR_LEFT = 0;
|
extern const int MOTOR_REAR_LEFT = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user