Skip to content
Snippets Groups Projects
Commit ee50e637 authored by rmackay9's avatar rmackay9
Browse files

AP_AHRS: remove debug messages

parent 200389dc
No related branches found
No related tags found
No related merge requests found
......@@ -101,16 +101,10 @@ void AP_AHRS::add_trim(float roll_in_radians, float pitch_in_radians)
{
Vector3f trim = _trim.get();
// debug -- remove me!
Serial.printf_P(PSTR("\nadd_trim before R:%4.2f P:%4.2f\n"),ToDeg(trim.x),ToDeg(trim.y));
// add new trim
trim.x = constrain(trim.x + roll_in_radians, ToRad(-10.0), ToRad(10.0));
trim.y = constrain(trim.y + pitch_in_radians, ToRad(-10.0), ToRad(10.0));
// set and save new trim values
_trim.set_and_save(trim);
// debug -- remove me!
Serial.printf_P(PSTR("add_trim after R:%4.2f P:%4.2f\n"),ToDeg(trim.x),ToDeg(trim.y));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment