re-entry tweaks
This commit is contained in:
@@ -32,6 +32,8 @@ function TestSetup{
|
||||
|
||||
declare function Landing{
|
||||
parameter altitudeOffset is 0.0.
|
||||
parameter maxLandingSpeed is -20.
|
||||
|
||||
print "Starting Landing".
|
||||
gear on.
|
||||
set pad to location_constants:kerbin:launchpad:position.
|
||||
@@ -71,7 +73,7 @@ declare function Landing{
|
||||
|
||||
until landed {
|
||||
set landingThrottle to hoverPid:update(time:seconds, verticalSpeed).
|
||||
set hoverPid:setpoint to Map(alt:radar + altitudeOffset, 0, 100, -0.5, -20).
|
||||
set hoverPid:setpoint to Map(alt:radar + altitudeOffset, 0, 100, -0.5, maxLandingSpeed).
|
||||
wait 0.001.
|
||||
}
|
||||
print "Landed".
|
||||
|
||||
Reference in New Issue
Block a user