mirror of https://github.com/ArduPilot/ardupilot
autotest: changed default sim_quad rate to 400Hz (matches autotest
script)
This commit is contained in:
parent
b08e1329d0
commit
5a2827e64b
|
@ -53,7 +53,7 @@ def sim_send(m, a):
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
def sim_recv(m, a):
|
def sim_recv(m):
|
||||||
'''receive control information from SITL'''
|
'''receive control information from SITL'''
|
||||||
try:
|
try:
|
||||||
buf = sim_in.recv(22)
|
buf = sim_in.recv(22)
|
||||||
|
@ -83,7 +83,7 @@ parser.add_option("--fgout", dest="fgout", help="flightgear output (IP:port)",
|
||||||
parser.add_option("--simin", dest="simin", help="SIM input (IP:port)", default="127.0.0.1:5502")
|
parser.add_option("--simin", dest="simin", help="SIM input (IP:port)", default="127.0.0.1:5502")
|
||||||
parser.add_option("--simout", dest="simout", help="SIM output (IP:port)", default="127.0.0.1:5501")
|
parser.add_option("--simout", dest="simout", help="SIM output (IP:port)", default="127.0.0.1:5501")
|
||||||
parser.add_option("--home", dest="home", type='string', default=None, help="home lat,lng,alt,hdg (required)")
|
parser.add_option("--home", dest="home", type='string', default=None, help="home lat,lng,alt,hdg (required)")
|
||||||
parser.add_option("--rate", dest="rate", type='int', help="SIM update rate", default=1000)
|
parser.add_option("--rate", dest="rate", type='int', help="SIM update rate", default=400)
|
||||||
parser.add_option("--wind", dest="wind", help="Simulate wind (speed,direction,turbulance)", default='0,0,0')
|
parser.add_option("--wind", dest="wind", help="Simulate wind (speed,direction,turbulance)", default='0,0,0')
|
||||||
|
|
||||||
(opts, args) = parser.parse_args()
|
(opts, args) = parser.parse_args()
|
||||||
|
@ -155,7 +155,7 @@ sleep_overhead = 0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
frame_start = time.time()
|
frame_start = time.time()
|
||||||
sim_recv(m, a)
|
sim_recv(m)
|
||||||
|
|
||||||
m2 = m[:]
|
m2 = m[:]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue