mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
removed debugging
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1561 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
b4abbacbd8
commit
4cc0992e65
@ -71,9 +71,9 @@ void calc_nav()
|
||||
// rotate the vector
|
||||
nav_roll = (float)nav_lat * yawvector.x - (float)nav_lon * yawvector.y;
|
||||
nav_pitch = (float)nav_lon * yawvector.x + (float)nav_lat * yawvector.y;
|
||||
Serial.printf("vx %4.4f,vy %4.4f, nr %ld, np %ld ", yawvector.x, yawvector.y, nav_roll, nav_pitch);
|
||||
//nav_roll = constrain(nav_roll, -pitch_max, pitch_max);
|
||||
//nav_pitch = constrain(nav_pitch, -pitch_max, pitch_max);
|
||||
//Serial.printf("vx %4.4f,vy %4.4f, nr %ld, np %ld ", yawvector.x, yawvector.y, nav_roll, nav_pitch);
|
||||
nav_roll = constrain(nav_roll, -pitch_max, pitch_max);
|
||||
nav_pitch = constrain(nav_pitch, -pitch_max, pitch_max);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user