mirror of
https://github.com/okalachev/flix.git
synced 2026-01-10 21:16:50 +00:00
Assume armed is true if armed channel is not defined
This commit is contained in:
@@ -72,7 +72,8 @@ void control() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void interpretRC() {
|
void interpretRC() {
|
||||||
armed = controls[throttleChannel] >= 0.05 && controls[armedChannel] >= 0.5;
|
armed = controls[throttleChannel] >= 0.05 &&
|
||||||
|
(controls[armedChannel] >= 0.5 || isnan(controls[armedChannel])); // assume armed if armed channel is not defined
|
||||||
|
|
||||||
// NOTE: put ACRO or MANUAL modes there if you want to use them
|
// NOTE: put ACRO or MANUAL modes there if you want to use them
|
||||||
if (controls[modeChannel] < 0.25) {
|
if (controls[modeChannel] < 0.25) {
|
||||||
|
|||||||
Reference in New Issue
Block a user