Skip to content

Commit

Permalink
Updated lsm6dso driver and interfaced with IMU
Browse files Browse the repository at this point in the history
  • Loading branch information
Myers-Ty committed Dec 5, 2024
1 parent 329d975 commit 226ddcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Core/Inc/msb.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ int8_t central_temp_measure(uint16_t *temp, uint16_t *humidity);
#endif

#ifdef SENSOR_IMU
int8_t accel_read(LSM6DSO_Axes_t* accel);
int8_t accel_read(LSM6DSO_Axes_t *accel);

int8_t gyro_read(LSM6DSO_Axes_t* gyro);
int8_t gyro_read(LSM6DSO_Axes_t *gyro);
#endif

#ifdef SENSOR_TOF
Expand Down
1 change: 0 additions & 1 deletion Core/Src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ void vIMUMonitor(void *pv_params)
endian_swap(&gyro_data.gyro_x, sizeof(gyro_data.gyro_x));
endian_swap(&gyro_data.gyro_y, sizeof(gyro_data.gyro_y));
endian_swap(&gyro_data.gyro_z, sizeof(gyro_data.gyro_z));
endian_swap(&temperature_data.temp, sizeof(temperature_data.temp));

/* Send CAN message */
memcpy(imu_accel_msg.data, &accel_data, imu_accel_msg.len);
Expand Down

0 comments on commit 226ddcb

Please sign in to comment.