removed debugging
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1561 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
e6fe75c9aa
commit
0b2008f581
@ -71,9 +71,9 @@ void calc_nav()
|
|||||||
// rotate the vector
|
// rotate the vector
|
||||||
nav_roll = (float)nav_lat * yawvector.x - (float)nav_lon * yawvector.y;
|
nav_roll = (float)nav_lat * yawvector.x - (float)nav_lon * yawvector.y;
|
||||||
nav_pitch = (float)nav_lon * yawvector.x + (float)nav_lat * 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);
|
//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_roll = constrain(nav_roll, -pitch_max, pitch_max);
|
||||||
//nav_pitch = constrain(nav_pitch, -pitch_max, pitch_max);
|
nav_pitch = constrain(nav_pitch, -pitch_max, pitch_max);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user