AC_PrecLand: remove const from get_angle_to_target

This commit is contained in:
Daniel Nugent 2015-09-11 20:01:44 +09:00 committed by Randy Mackay
parent 21ac12f1c3
commit 2f92876865
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ public:
// returns true if angles are available, false if not (i.e. no target)
// x_angle_rad : body-frame roll direction, positive = target is to right (looking down)
// y_angle_rad : body-frame pitch direction, postiive = target is forward (looking down)
virtual bool get_angle_to_target(float &x_angle_rad, float &y_angle_rad) const = 0;
virtual bool get_angle_to_target(float &x_angle_rad, float &y_angle_rad) = 0;
protected:

View File

@ -34,7 +34,7 @@ bool AC_PrecLand_IRLock::update()
// returns true if angles are available, false if not (i.e. no target)
// x_angle_rad : body-frame roll direction, positive = target is to right (looking down)
// y_angle_rad : body-frame pitch direction, postiive = target is forward (looking down)
bool AC_PrecLand_IRLock::get_angle_to_target(float &x_angle_rad, float &y_angle_rad) const
bool AC_PrecLand_IRLock::get_angle_to_target(float &x_angle_rad, float &y_angle_rad)
{
return irlock.get_angle_to_target(x_angle_rad, y_angle_rad);
}

View File

@ -33,7 +33,7 @@ public:
// returns true if angles are available, false if not (i.e. no target)
// x_angle_rad : body-frame roll direction, positive = target is to right (looking down)
// y_angle_rad : body-frame pitch direction, postiive = target is forward (looking down)
bool get_angle_to_target(float &x_angle_rad, float &y_angle_rad) const;
bool get_angle_to_target(float &x_angle_rad, float &y_angle_rad);
private:
AP_IRLock_PX4 irlock;