diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp index ed8fd42d9bf..153a9bcc5f0 100644 --- a/src/drivers/hmc5883/hmc5883.cpp +++ b/src/drivers/hmc5883/hmc5883.cpp @@ -987,8 +987,8 @@ HMC5883::collect() * to align the sensor axes with the board, x and y need to be flipped * and y needs to be negated */ - new_report.x_raw = report.y; - new_report.y_raw = -report.x; + new_report.x_raw = -report.y; + new_report.y_raw = report.x; /* z remains z */ new_report.z_raw = report.z;