diff options
author | Pavel Kirienko <pavel.kirienko@gmail.com> | 2014-08-22 15:41:21 +0400 |
---|---|---|
committer | Pavel Kirienko <pavel.kirienko@gmail.com> | 2014-08-22 15:41:21 +0400 |
commit | bdc2ecd9f6d0ae3e66feb8a8e94391b606ee451e (patch) | |
tree | d043d5a1b7f83375cacbc1f26e2bd20445dd0083 | |
parent | e32ff6004be5d7bbd4b94b437b6deaa770618259 (diff) | |
download | px4-firmware-bdc2ecd9f6d0ae3e66feb8a8e94391b606ee451e.tar.gz px4-firmware-bdc2ecd9f6d0ae3e66feb8a8e94391b606ee451e.tar.bz2 px4-firmware-bdc2ecd9f6d0ae3e66feb8a8e94391b606ee451e.zip |
Too much Ctrl+C Ctrl+V
-rw-r--r-- | src/modules/uavcan/sensors/mag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/uavcan/sensors/mag.cpp b/src/modules/uavcan/sensors/mag.cpp index ac43ea1e3..6be9e9bac 100644 --- a/src/modules/uavcan/sensors/mag.cpp +++ b/src/modules/uavcan/sensors/mag.cpp @@ -137,8 +137,8 @@ void UavcanMagnetometerBridge::mag_sub_cb(const uavcan::ReceivedDataStructure<ua } report.x = (msg.magnetic_field[0] - _scale.x_offset) * _scale.x_scale; - report.y = (msg.magnetic_field[1] - _scale.x_offset) * _scale.x_scale; - report.z = (msg.magnetic_field[2] - _scale.x_offset) * _scale.x_scale; + report.y = (msg.magnetic_field[1] - _scale.y_offset) * _scale.y_scale; + report.z = (msg.magnetic_field[2] - _scale.z_offset) * _scale.z_scale; if (_orb_advert >= 0) { orb_publish(_orb_id, _orb_advert, &report); |