New concept of flight modes
Current concept of flight modes is confusing - you need to activate a combination of modes to get something working.
Suggestion - refactor concept of flight modes with following points in mind:
- BOXes are assigned to AUX channels as usual
- BOXes are split into "FLIGHT MODE", "MODIFIER" and "FUNCTION"
- Only one FLIGHT MODE is active at any given time
- (implied by the previous point) FLIGHT MODE is self-contained, no need to combine with anything else. This will also require that we add a new flight mode "ACRO"
- MODIFIER - changes the behavior of a FLIGHT MODE. I.e. HEAD FREE could be a modifier for ANGLE mode.
- FUNCTION is independent and used to activate certain features of flight controller. Example: BEEPER, BLACKBOX.
Navigation modes will fit nicely into this concept - they are already mostly self-contained.
What is the difference between 'MODIFIER' and 'FUNCTION' in terms of the actual implementation? Or rather can and should they be combined into 1, so that you have a 'FLIGHT MODE' selector, and a set of 'FUNCTION's that can be switched on and off irrespective of flight mode?
@mikeller in terms of implementation - none. We'll probably have a mask to allow a FUNCTION to activate only with certain flight modes.
@digitalentity: Definitely. A lot of the existing modes are already dependent on some sort of condition, including a specific flight mode being active.
This is definitely a welcome improvement.
This is definitely an improvement over the current system. Any mode which only works with ANGLE and is unlikely to work with HORIZON/ACRO in the future should be "promoted" to "FLIGHT MODE".
Now, I'm thinking about how to show this on the OSD. How many MODIFIER modes which can be applied to at least two of ANGLE/HORIZON/ACRO do we have? I guess AIR could be applied to any of them, but what about HEADFREE, AUTOTUNE and AUTOTRIM? I'd really like to be able to show all of this to the user without requiring to set up a complicated OSD configuration (probably by making OSD_FLYMODE two lines).
Also, the more I think about it, the more I'd like an OSD element for temporary messages. It would allow us to show when a function mode has been enabled/disabled (e.g. "Beeper is on", "Beeper is off") or the reason for not arming (e.g. "Gyro not calibrated") or the current RTH phase (e.g. "Climbing", "Going home", "Landing").
Removing inappropriate post as requested.
@Bobrcnut: Your comment is off topic for this issue. Please open a new issue with your suggestion, so that we can keep track of it.
Also, the more I think about it, the more I'd like an OSD element for temporary messages. It would allow us to show when a function mode has been enabled/disabled (e.g. "Beeper is on", "Beeper is off") or the reason for not arming (e.g. "Gyro not calibrated") or the current RTH phase (e.g. "Climbing", "Going home", "Landing"). This is something i'm missing from other flight controllers (notably vector).
i think now concept of flight modes is the best, just add a extra check of the combination is enough
@sincoder "the most flexible" - yes, "the best" - I'm not so sure. There are too many combinations of incompatible modes to check - and checks happen in a lot of different places in the code. It's very easy to miss something when adding a new mode - and then have a report about something bad happening because used enabled the two together.
maybe we can learn how DJI does, flight mode P , A , F , S , function button : RTH , STOP ,Intelligent flight mode: head less ....etc, just as you think
This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.
Automatically closing as inactive.