gzwsc2007 / Hobby_Airplane_Control_System

A powerful control system for hobby airplanes
http://ansonproj.blogspot.com/2015/06/hobby-airplane-control-system-hacs.html
1 stars 0 forks source link

Random death on a particular RC channel #1

Open gzwsc2007 opened 9 years ago

gzwsc2007 commented 9 years ago

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.

gzwsc2007 commented 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..?)

gzwsc2007 commented 9 years ago

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...