Rev 1612 | Rev 1775 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1612 | Rev 1617 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | EC_PRTY[CONTROL_PITCH] = EC_PRTY[CONTROL_ROLL] = EC_PRTY[CONTROL_THROTTLE] = EC_PRTY[CONTROL_YAW] = 0; |
50 | EC_PRTY[CONTROL_PITCH] = EC_PRTY[CONTROL_ROLL] = EC_PRTY[CONTROL_THROTTLE] = EC_PRTY[CONTROL_YAW] = 0; |
51 | } |
51 | } |
52 | } |
52 | } |
Line 53... | Line 53... | ||
53 | 53 | ||
54 | uint8_t EC_getSignalQuality(void) { |
- | |
55 | if (!(externalControl.config & 0x01 && dynamicParams.ExternalControl > 128)) |
- | |
56 | // External control is not even configured. |
- | |
57 | return NO_SIGNAL; |
- | |
58 | 54 | uint8_t EC_getSignalQuality(void) { |
|
59 | if (externalControlActive > 100) |
55 | if (externalControlActive > 100) |
60 | // Configured and heard from recently |
56 | // Configured and heard from recently |
Line 61... | Line 57... | ||
61 | return SIGNAL_GOOD; |
57 | return SIGNAL_GOOD; |
62 | 58 | ||
63 | if (externalControlActive) |
59 | if (externalControlActive) |
Line -... | Line 60... | ||
- | 60 | // Configured and heard from |
|
- | 61 | return SIGNAL_OK; |
|
- | 62 | ||
- | 63 | if (!(externalControl.config & 0x01 && dynamicParams.ExternalControl > 128)) |
|
64 | // Configured and heard from |
64 | // External control is not even configured. |
65 | return SIGNAL_OK; |
65 | return NO_SIGNAL; |
66 | 66 |