autotest: fixed SITL without ROS installed
This commit is contained in:
parent
ca92821445
commit
a0028e3faf
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
from multicopter import MultiCopter
|
from multicopter import MultiCopter
|
||||||
from helicopter import HeliCopter
|
from helicopter import HeliCopter
|
||||||
from iris_ros import IrisRos
|
|
||||||
import util, time, os, sys, math
|
import util, time, os, sys, math
|
||||||
import socket, struct
|
import socket, struct
|
||||||
import select, errno
|
import select, errno
|
||||||
@ -139,6 +138,7 @@ fdm = fgFDM.fgFDM()
|
|||||||
if opts.frame == 'heli':
|
if opts.frame == 'heli':
|
||||||
a = HeliCopter(frame=opts.frame)
|
a = HeliCopter(frame=opts.frame)
|
||||||
elif opts.frame == 'IrisRos':
|
elif opts.frame == 'IrisRos':
|
||||||
|
from iris_ros import IrisRos
|
||||||
a = IrisRos()
|
a = IrisRos()
|
||||||
else:
|
else:
|
||||||
a = MultiCopter(frame=opts.frame)
|
a = MultiCopter(frame=opts.frame)
|
||||||
|
Loading…
Reference in New Issue
Block a user