mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 17:16:10 +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() {
|
||||
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
|
||||
if (controls[modeChannel] < 0.25) {
|
||||
|
Reference in New Issue
Block a user