AP_Scripting: fixed aerobatics bug

thanks Andy!
This commit is contained in:
Andrew Tridgell 2022-12-14 18:01:32 +11:00
parent ca3be1d0c7
commit 84db577f09
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ end
--]]
local _roll_angle_exit = inheritsFrom(nil, "roll_angle_exit")
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
if t < 1.0 - entry_t then
return 0