Hi,
Iβm trying to log events from an aux input.
I set the BRD_PWM_COUNT to 4 and connected the input signal to pin 55 on my Pixhawk.
The input signal is trigger high, i.e normally 0 and rises to 1 (3.3 V) for about 2 miliseconds when event occurs.
How can I log those events?
Hi, @geofrancis can you please help me, Iβm probably doing something wrong cause I cant see the BTN events on my logsβ¦
Is this the correct setting:
BTN_ENABLE = 1
BTN_PIN1 = 54 (AUX5)
RC13_DZ = 0
RC13_max = 1700
RC13_min = 1500
RC13_reversed = 0
RC13_TRIM = 1000
have you tried shorting the aux pin to ground with a wire to check it registers the button, its possible 2ms its too short a pulse to be registered as a button.
yes I tried but still canβt see it on the log
It supposed to be BTN on the log? it saves the time and position when the event occurs?
BTN_FUNCT1 and BTN_OPTIONS1 is still set to 0, is it right?
I was just looking I donβt think using the button in will work, I just looked at the code and the button needs to be held down for at least 50ms.
What your looking for is something like the camera feedback pin, its used for getting ms level pin logging but I donβt think that is available on copter