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.
15 lines
208 B
C++
15 lines
208 B
C++
#ifndef PositionSensor_h
|
|
#define PositionSensor_h
|
|
|
|
#include "Arduino.h"
|
|
|
|
class PositionSensor {
|
|
public:
|
|
PositionSensor(int pin);
|
|
void begin();
|
|
void Measure();
|
|
private:
|
|
int _pin;
|
|
};
|
|
|
|
#endif |