Open gzwsc2007 opened 9 years ago
Sometimes a few RC channels will not have the GPIO interrupts triggered correctly. Seems to have something to do with IRQ being disabled for too long (i.e. during a FLASH operation..?)
Further debugging suggests that there seems to be a race condition with the EXTI->RTSR/FTSR registers. I manage to encounter a "death" on the aileron channel while the debugger is on, and I found that for bit EXTI8, neither the bit in RTSR nor the bit in FTSR is set...
During the test flight today, it appears that occasionally one of the RC channels is dead (once for throttle and once for elevator). During the loss of elevator control, If it was not for the fail-safe override, the plane would have been crashed.
My initial guess is that the rc_receiver module is still somehow problematic.