Skip to content

Commit 5eda1a9

Browse files
committed
Update 9dof_to_unity_uncalibrated.ino
1 parent 5c62f84 commit 5eda1a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Arduino_9DoF_to_Unity/9dof_to_unity_uncalibrated/9dof_to_unity_uncalibrated.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ int x;
88
int y;
99
int z;
1010

11-
Adafruit_LSM6DS3TRC lsm6ds3trc;
11+
Adafruit_LSM6DS3TRC lsm6ds;
1212

1313
void setup() {
1414
// put your setup code here, to run once:
@@ -37,7 +37,7 @@ void loop() {
3737
sensors_event_t accel;
3838
sensors_event_t gyro;
3939
sensors_event_t temp;
40-
lsm6ds3trc.getEvent(&accel, &gyro, &temp);
40+
lsm6ds.getEvent(&accel, &gyro, &temp);
4141

4242
x = map(accel.acceleration.x, -12, 11, 180, -180);
4343
y = map(accel.acceleration.y, -19, 20, -180, 180);

0 commit comments

Comments
 (0)