mirror of https://github.com/ArduPilot/ardupilot
Copter: remove intermediate variable from throw mode
This commit is contained in:
parent
c5407462d1
commit
1df8acf5cd
|
@ -252,8 +252,7 @@ bool Copter::throw_attitude_good()
|
|||
{
|
||||
// Check that we have uprighted the copter
|
||||
const Matrix3f &rotMat = ahrs.get_rotation_body_to_ned();
|
||||
bool is_upright = (rotMat.c.z > 0.866f);
|
||||
return is_upright;
|
||||
return (rotMat.c.z > 0.866f); // is_upright
|
||||
}
|
||||
|
||||
bool Copter::throw_height_good()
|
||||
|
|
Loading…
Reference in New Issue