mirror of https://github.com/ArduPilot/ardupilot
AC_PrecLand: remove const from get_angle_to_target
This commit is contained in:
parent
21ac12f1c3
commit
2f92876865
|
@ -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:
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue