mirror of https://github.com/ArduPilot/ardupilot
parent
ca3be1d0c7
commit
84db577f09
|
@ -516,7 +516,7 @@ end
|
||||||
--]]
|
--]]
|
||||||
local _roll_angle_exit = inheritsFrom(nil, "roll_angle_exit")
|
local _roll_angle_exit = inheritsFrom(nil, "roll_angle_exit")
|
||||||
function _roll_angle_exit:get_roll(t, time_s)
|
function _roll_angle_exit:get_roll(t, time_s)
|
||||||
local entry_s = math.abs(angle) / AEROM_ENTRY_RATE:get()
|
local entry_s = math.abs(self.angle) / AEROM_ENTRY_RATE:get()
|
||||||
local entry_t = entry_s / time_s
|
local entry_t = entry_s / time_s
|
||||||
if t < 1.0 - entry_t then
|
if t < 1.0 - entry_t then
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue