Working IMU with polling

This commit is contained in:
2026-03-19 18:41:32 +01:00
commit 182cc429bb
10 changed files with 2999 additions and 0 deletions

19
main/motors.h Normal file
View File

@@ -0,0 +1,19 @@
#pragma once
#include <stdint.h>
#define MOTOR1_FWD_PIN 4
#define MOTOR1_BAK_PIN 5
#define MOTOR2_FWD_PIN 6
#define MOTOR2_BAK_PIN 7
typedef enum {
MOTOR1,
MOTOR2,
} motor_t;
typedef int8_t percentile_t;
void init_motors();
void set_motor(motor_t motor, percentile_t percentile);
void set_motors(percentile_t left, percentile_t right);