[X9D] Trainer driver

[X9D] Audio started
This commit is contained in:
bsongis
2013-01-12 18:21:08 +00:00
parent 51a665cec7
commit 9d52bdd6bd
9 changed files with 291 additions and 139 deletions
+3 -3
View File
@@ -302,10 +302,10 @@ extern "C" void TC3_IRQHandler() //capture ppm in at 2MHz
// G: We process g_ppmIns immediately here, to make servo movement as smooth as possible
// while under trainee control
if (val>4000 && val < 16000) // G: Prioritize reset pulse. (Needed when less than 8 incoming pulses)
if (val>4000 && val<19000) { // G: Prioritize reset pulse. (Needed when less than 8 incoming pulses)
ppmInState = 1; // triggered
else
{
}
else {
if (ppmInState && ppmInState<=8)
{
if (val>800 && val<2200) // if valid pulse-width range