Skip to content

Commit 2419a35

Browse files
committed
typo
1 parent 0fe62e0 commit 2419a35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Arduino_AlvikCarrier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,8 @@ void Arduino_AlvikCarrier::updateImu(){
701701
imu_data.acc[0] = (float)accelerometer[0] * FROM_MG_TO_G;
702702
imu_data.acc[1] = (float)accelerometer[1] * FROM_MG_TO_G;
703703
imu_data.acc[2] = (float)accelerometer[2] * FROM_MG_TO_G;
704-
imu_data.mag[0] = -getSinTheta() * SIM_MAG_FILED_UT50;
705-
imu_data.mag[1] = getCosTheta() * SIM_MAG_FILED_UT50;
704+
imu_data.mag[0] = -getSinTheta() * SIM_MAG_FIELD_UT50;
705+
imu_data.mag[1] = getCosTheta() * SIM_MAG_FIELD_UT50;
706706
imu_data.mag[2] = 0;
707707

708708

src/definitions/robot_definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const float MOTION_FX_PERIOD = (1000U / MOTION_FX_FREQ);
9090
#define MOTION_FX_DECIMATION 1U
9191
#define FROM_MGAUSS_TO_UT50 (0.1f/50.0f)
9292
#define SIM_MAG_FIELD_MG 500 // simulated magnetic field intensity in mGauss
93-
#define SIM_MAG_FILED_UT50 SIM_MAG_FIELD_MG * FROM_MGAUSS_TO_UT50
93+
#define SIM_MAG_FIELD_UT50 SIM_MAG_FIELD_MG * FROM_MGAUSS_TO_UT50
9494

9595
// Library version
9696
#define VERSION_BYTE_HIGH 1

0 commit comments

Comments
 (0)