mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AntennaTracker: use new interactive accelcal
This commit is contained in:
parent
9b9aa3dc33
commit
e6b291f270
@ -533,7 +533,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
#if !defined( __AVR_ATmega1280__ )
|
||||
if (packet.param5 == 1) {
|
||||
float trim_roll, trim_pitch;
|
||||
AP_InertialSensor_UserInteract_MAVLink interact(chan);
|
||||
AP_InertialSensor_UserInteract_MAVLink interact(this);
|
||||
if(ins.calibrate_accel(&interact, trim_roll, trim_pitch)) {
|
||||
// reset ahrs's trim to suggested values from calibration routine
|
||||
ahrs.set_trim(Vector3f(trim_roll, trim_pitch, 0));
|
||||
|
Loading…
Reference in New Issue
Block a user