mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
22 lines
411 B
C++
22 lines
411 B
C++
//
|
|
// Created by Johnathon Slightham on 2025-07-26.
|
|
//
|
|
|
|
#ifndef ORIENTATIONDETECTION_H
|
|
#define ORIENTATIONDETECTION_H
|
|
|
|
#include "flatbuffers_generated/RobotModule_generated.h"
|
|
#include "driver/gpio.h"
|
|
|
|
class OrientationDetection {
|
|
public:
|
|
static void init();
|
|
static Orientation get_orientation(uint8_t channel);
|
|
|
|
private:
|
|
static void setup_gpio(gpio_num_t pin);
|
|
|
|
};
|
|
|
|
#endif //ORIENTATIONDETECTION_H
|