feat: Add Arduino code for position tracking

The code changes include adding a new Arduino sketch for position tracking. The sketch is located at `code/arduino/Position-tracking/Position-tracking.ino`. Additionally, a new class `PositionSensor` is added with its corresponding header and implementation files. This class handles the position sensor functionality and includes methods for initialization and measurement.

The commit message suggests that the changes are a new feature addition related to position tracking in the Arduino code.
This commit is contained in:
SebasKoedam
2024-05-21 12:55:14 +02:00
parent a4907f00c8
commit 39f3d4bb1d
9 changed files with 82 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
#ifndef PositionSensor_h
#define PositionSensor_h
#include "Arduino.h"
class PositionSensor {
public:
PositionSensor(int pin);
void begin();
void Measure();
private:
int _pin;
};
#endif