mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
made sonar support compiled in (lol)
changed PPM pulse idle detect to 2.7ms per JimDrew instructions updated keil project w /sonar source files. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@168 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
ce1ec92a67
commit
2fd5645dce
5 changed files with 2709 additions and 2669 deletions
|
@ -85,7 +85,7 @@ static void ppmIRQHandler(TIM_TypeDef *tim)
|
|||
diff = ((0xFFFF - last) + now);
|
||||
}
|
||||
|
||||
if (diff > 4000) {
|
||||
if (diff > 2700) { // Per http://www.rcgroups.com/forums/showpost.php?p=21996147&postcount=3960 "So, if you use 2.5ms or higher as being the reset for the PPM stream start, you will be fine. I use 2.7ms just to be safe."
|
||||
chan = 0;
|
||||
} else {
|
||||
if (diff > 750 && diff < 2250 && chan < 8) { // 750 to 2250 ms is our 'valid' channel range
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue