This makes failsafe much easier to configure on the flight controller. The previous behavior of setting all the channels to 1000 was a bit confusing because the pulses my flight control was receiving were already less than 1000, so going into failsafe actually raised all channel levels until I adjusted subtrim on throttle to keep it around 1010. With this code, it simply stops pulsing in such a way that matches what the frsky d4r does (see below). This is a well-known and unambiguous path. D4R losing radio contact: http://i.imgur.com/8Xd27VQ.png This code losing radio contact: http://i.imgur.com/lxGL4CT.png
|
|
||
38 |
|
38 |
|
39 |
|
39 |
|
40 |
|
40 |
|
|
41 |
|
|
41 |
|
42 |
|
42 |
|
43 |
|
43 |
|
44 |
|
|
|
||
106 |
|
107 |
|
107 |
|
108 |
|
108 |
|
109 |
|
|
110 |
|
|
109 |
|
111 |
|
110 |
|
112 |
|
111 |
|
113 |
|
|
|
||
216 |
|
218 |
|
217 |
|
219 |
|
218 |
|
220 |
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
|
|
|
224 |
|
|
|
|
221 |
|
|
|
222 |
|
|
225 |
|
223 |
|
226 |
|
|
|
227 |
|
|
|
228 |
|
|
|
229 |
|
|
|
230 |
|
|
|
231 |
|
224 |
|
232 |
|
225 |
|
233 |
|
226 |
|
|
|
||
263 |
|
256 |
|
264 |
|
257 |
|
265 |
|
258 |
|
|
259 |
|
|
266 |
|
260 |
|
267 |
|
261 |
|
268 |
|
262 |
|
|
|
||
471 |
|
465 |
|
472 |
|
466 |
|
473 |
|
467 |
|
|
468 |
|
|
|
469 |
|
|
|
470 |
|
|
|
471 |
|
|
|
472 |
|
|
474 |
|
473 |
|
475 |
|
474 |
|
476 |
|
475 |
|