mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 21:43:33 +08:00
Too much Ctrl+C Ctrl+V
This commit is contained in:
@@ -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.x = (msg.magnetic_field[0] - _scale.x_offset) * _scale.x_scale;
|
||||||
report.y = (msg.magnetic_field[1] - _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.x_offset) * _scale.x_scale;
|
report.z = (msg.magnetic_field[2] - _scale.z_offset) * _scale.z_scale;
|
||||||
|
|
||||||
if (_orb_advert >= 0) {
|
if (_orb_advert >= 0) {
|
||||||
orb_publish(_orb_id, _orb_advert, &report);
|
orb_publish(_orb_id, _orb_advert, &report);
|
||||||
|
|||||||
Reference in New Issue
Block a user