mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 23:50:36 +08:00
renamed heading controller to wheel controller, added groundspeed dependency and separate parameters
This commit is contained in:
@@ -123,10 +123,10 @@ void RunwayTakeoff::update(float airspeed, float alt_agl, int mavlink_fd)
|
||||
}
|
||||
}
|
||||
|
||||
bool RunwayTakeoff::controlYaw()
|
||||
bool RunwayTakeoff::controlWheel()
|
||||
{
|
||||
// keep controlling yaw with rudder until we have enough ground clearance
|
||||
return _state < RunwayTakeoffState::FLY;
|
||||
// keep controlling wheel until takeoff
|
||||
return _state < RunwayTakeoffState::TAKEOFF;
|
||||
}
|
||||
|
||||
float RunwayTakeoff::getPitch(float tecsPitch)
|
||||
@@ -140,6 +140,7 @@ float RunwayTakeoff::getPitch(float tecsPitch)
|
||||
|
||||
float RunwayTakeoff::getRoll(float navigatorRoll)
|
||||
{
|
||||
// until we have enough ground clearance, set roll to 0
|
||||
if (_state < RunwayTakeoffState::FLY) {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
|
||||
bool runwayTakeoffEnabled() { return (bool)_runway_takeoff_enabled.get(); };
|
||||
|
||||
bool controlYaw();
|
||||
bool controlWheel();
|
||||
bool climbout() { return _climbout; };
|
||||
float getPitch(float tecsPitch);
|
||||
float getRoll(float navigatorRoll);
|
||||
|
||||
Reference in New Issue
Block a user