mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
minor
This commit is contained in:
parent
238fcf1176
commit
b72ea2d02c
@ -3589,6 +3589,7 @@ function WAREHOUSE:onafterAddAsset(From, Event, To, group, ngroups, forceattribu
|
|||||||
|
|
||||||
else
|
else
|
||||||
self:E(self.wid.."ERROR: Unknown group added as asset!")
|
self:E(self.wid.."ERROR: Unknown group added as asset!")
|
||||||
|
self:E({unknowngroup=group})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Update status.
|
-- Update status.
|
||||||
|
|||||||
@ -880,6 +880,8 @@ end
|
|||||||
function CONTROLLABLE:TaskOrbit(Coord, Altitude, Speed, CoordRaceTrack)
|
function CONTROLLABLE:TaskOrbit(Coord, Altitude, Speed, CoordRaceTrack)
|
||||||
|
|
||||||
local Pattern=AI.Task.OrbitPattern.CIRCLE
|
local Pattern=AI.Task.OrbitPattern.CIRCLE
|
||||||
|
|
||||||
|
local P1=Coord:GetVec2()
|
||||||
local P2=nil
|
local P2=nil
|
||||||
if CoordRaceTrack then
|
if CoordRaceTrack then
|
||||||
Pattern=AI.Task.OrbitPattern.RACE_TRACK
|
Pattern=AI.Task.OrbitPattern.RACE_TRACK
|
||||||
@ -890,7 +892,7 @@ function CONTROLLABLE:TaskOrbit(Coord, Altitude, Speed, CoordRaceTrack)
|
|||||||
id = 'Orbit',
|
id = 'Orbit',
|
||||||
params = {
|
params = {
|
||||||
pattern = Pattern,
|
pattern = Pattern,
|
||||||
point = Coord:GetVec2(),
|
point = P1,
|
||||||
point2 = P2,
|
point2 = P2,
|
||||||
speed = Speed,
|
speed = Speed,
|
||||||
altitude = Altitude,
|
altitude = Altitude,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user