MindPX: Remove hardcode for sensors rotation.

This commit is contained in:
Henry Zhang
2016-10-29 10:56:32 +02:00
committed by Lorenz Meier
parent f17dc2f2a6
commit b280e28623
4 changed files with 16 additions and 75 deletions
-12
View File
@@ -1045,18 +1045,6 @@ L3GD20::measure()
report.z_raw = raw_report.z;
#if defined(CONFIG_ARCH_BOARD_MINDPX_V2)
int16_t tx = -report.y_raw;
int16_t ty = -report.x_raw;
int16_t tz = -report.z_raw;
report.x_raw = tx;
report.y_raw = ty;
report.z_raw = tz;
#endif
report.temperature_raw = raw_report.temp;
float xraw_f = report.x_raw;