|
From: | Gautier Hattenberger |
Subject: | Re: [Paparazzi-devel] Futaba SBUS through R/C connector on Umarim |
Date: | Mon, 15 Jun 2015 23:05:14 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Hi, Le 14/06/2015 15:00, Joseph Muhlhausen
a écrit :
It all depends on the behavior of the converter when the signal is lost. If it keep sending a "failsafe" value, you'll not be able to tell if it is lost, but if the signal becomes null, you'll have the info. A hack we did some time ago for lpc21 is to use the led signal of the receiver (if the color is changed/tuned off when the signal is lost) and put this to a GPIO input. Then you need to define some stuff to turn this into RC_LOST signal. See sw/airborne/arch/lpc21/subsystems/radio_control/ppm_arch.h:54 And for the airframe (for pin P0.17): <subsystem name="radio_control" type="ppm"> <define name="USE_PPM_RSSI_GPIO"/> <define name="PPM_RSSI_IOPIN" value="IO0PIN"/> <define name="PPM_RSSI_PIN" value="17"/> <define name="PPM_RSSI_VALID_LEVEL" value="0"/> </subsystem> I guess it should work, but I don't use Lisa boards I don't think it works I never tried, probably a bit annoying.... Gautier
|
[Prev in Thread] | Current Thread | [Next in Thread] |