Wait one physics tick between PID adjustments.
This commit is contained in:
parent
5193fc9d68
commit
c17fab7703
|
@ -86,5 +86,6 @@ function rcs_translate {
|
||||||
local z is pid_z:update(TIME:seconds, relative_velocity():z).
|
local z is pid_z:update(TIME:seconds, relative_velocity():z).
|
||||||
|
|
||||||
set SHIP:CONTROL:TRANSLATION to ship_raw_to_ship_control(V(x,y,z)).
|
set SHIP:CONTROL:TRANSLATION to ship_raw_to_ship_control(V(x,y,z)).
|
||||||
|
wait 0. // wait one physics tick
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue