35
35
* 20ms+/-300us when talking to SITL (every time we recieve a cmd_ack we immediately send a pair of ROI related msgs)
36
36
* The less than 300us variablity makes me think SITL has some 20ms poll rate - need to try with real vehicle
37
37
38
- SITL
38
+ SITL copter load
39
39
Interval (sec) 0.019865
40
40
MaxInterval (sec) 0.021927
41
41
MinInterval (sec) 0.018421
45
45
MaxInterval 0.025496
46
46
MinInterval 0.011533
47
47
48
- PX4 quad load on Edsion: 20ms +60ms -5ms (VERY HIGH VARIABILITY - TBD is it Edison or PX4 )
48
+ PX4 quad load on Edsion: 20ms +60ms -5ms (VERY HIGH VARIABILITY - mostly due to px4 side - see below )
49
49
Interval 0.0281970000001
50
50
MaxInterval 0.0786720000001
51
51
MinInterval 0.0161290000001
52
52
53
- PX4 quad load on a pixhawk talking to my desktop - similar variability as with an Edison:
53
+ PX4 quad load on a pixhawk (a9defa35) talking to my desktop - similar variability as with an Edison:
54
54
Interval 0.01989
55
55
MaxInterval 0.0688479999999
56
56
MinInterval 0.00722900000005
61
61
MaxInterval 0.0688479999999
62
62
MinInterval 0.00722900000005
63
63
64
+ or here's 20ish of the interval values seen on the px4 (a9defa35) Test
65
+ Interval 0.020012
66
+ Interval 0.0199689999999
67
+ Interval 0.0229640000002
68
+ Interval 0.0171049999999
69
+ Interval 0.0198150000001
70
+ Interval 0.0211049999998
71
+ Interval 0.0199740000003
72
+ Interval 0.0199459999999
73
+ Interval 0.0199590000002
74
+ Interval 0.0200379999997
75
+ Interval 0.0200850000001
76
+ Interval 0.0198839999998
77
+ Interval 0.0200420000001
78
+ Interval 0.0199539999999
79
+ Interval 0.0200760000002
80
+ Interval 0.0199029999999
81
+ Interval 0.0200950000003
82
+ Interval 0.0517199999999
83
+
84
+ now testing with a plane load with a px4 (a9defa35) at 56kbps - highly variable 25 to 82ms
85
+ Interval 0.0589850000001
86
+ MaxInterval 0.0829760000001
87
+ MinInterval 0.0258819999999
88
+
89
+ but change to 115kbps and things are much better
90
+ Interval 0.0201160000001
91
+ MaxInterval 0.044656
92
+ MinInterval 0.0150279999998
93
+
94
+ and changing things to 500kbps everything is just peachie - 18ms
95
+ Interval 0.018119
96
+ MaxInterval 0.02527
97
+ MinInterval 0.015737
98
+
99
+ Recommendations:
100
+ Run link as fast as you can 1500kbps?
101
+ Turn on hw flow control (and use --rtscts on mavproxy)
102
+
64
103
mavproxy.py --master=/dev/ttyMFD1,115200 --cmd="api start perf_test.py"
65
104
"""
66
105
@@ -100,6 +139,7 @@ def update(self):
100
139
self .maxinterval = max (self .previnterval , self .maxinterval )
101
140
self .mininterval = min (self .mininterval , self .previnterval )
102
141
142
+ #print "Interval", self.previnterval
103
143
if (self .numcount % 100 ) == 0 :
104
144
if self .numcount == 200 :
105
145
# Ignore delays during startup
@@ -119,7 +159,7 @@ def mavrx_debug_handler(message):
119
159
#if mtype == 'HEARTBEAT':
120
160
if mtype == 'COMMAND_ACK' :
121
161
#traceback.print_stack()
122
- #print "GOT ACK"
162
+ #print "GOT ACK", message
123
163
acktime .update ()
124
164
send_testpackets ()
125
165
0 commit comments