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.
12 lines
161 B
C++
12 lines
161 B
C++
#include "PositionSensor.h"
|
|
|
|
PositionSensor sensor(15); // Sensor Pin
|
|
|
|
void setup() {
|
|
sensor.begin();
|
|
}
|
|
|
|
void loop() {
|
|
sensor.Measure();
|
|
delay(1000);
|
|
} |