mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:43:34 +08:00
MindPX: Remove hardcode for sensors rotation.
This commit is contained in:
committed by
Lorenz Meier
parent
f17dc2f2a6
commit
b280e28623
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user