mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
AHRS: fix example sketch to use roll/pitch trim
This commit is contained in:
parent
3321db8dde
commit
963231a19b
@ -102,6 +102,7 @@ void loop(void)
|
||||
|
||||
void run_calibration()
|
||||
{
|
||||
float roll_trim, pitch_trim;
|
||||
// clear off any other characters (like line feeds,etc)
|
||||
while( hal.console->available() ) {
|
||||
hal.console->read();
|
||||
@ -110,7 +111,7 @@ void run_calibration()
|
||||
|
||||
#if !defined( __AVR_ATmega1280__ )
|
||||
AP_InertialSensor_UserInteractStream interact(hal.console);
|
||||
ins.calibrate_accel(NULL, &interact);
|
||||
ins.calibrate_accel(NULL, &interact, roll_trim, pitch_trim);
|
||||
#else
|
||||
hal.console->println_P(PSTR("calibrate_accel not available on 1280"));
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user