Strip down F1-based targets
F1 targets are at their limit. We need to think about stripping them down to keep them afloat for next few releases. Better code modularity will allow us to exclude more features (hopefully unused) from F1-targets.
Another option is to simply declare them EOL and branch them out into `legacy' branch.
I'd say "legacy" branch.... We've been pushing the limits for quite some time now. And there will always be someone who will want LED strip on F1 and so on
I'm leaning towards "legacy" as well. Backport only bugfixes there - no new features.
Yes, exactly like that. With some cleanups master branch would be so much simpler if we remove all ifdef NAZE and ifdef CC3D.
pwm_mapping.c might even be understandable again
Well, more modularity is a good thing. But I'm against creating a separate branch for F1 - I think that will make it more difficult to manage.
There are actually very few #ifdef NAZE and #ifdef CC3D left in the code.
What about creating custom builds to allow user to remove unwanted features that pick lot of space in the F1. I'm talking about unused sensors (SPI or I2C), NRF24 and so on.. Also could be nice to create a Fixed and Moving wing version for NAZE.
I'm for "I'm leaning towards "legacy" as well. Backport only bugfixes there - no new features." And please take BMP085 back again into F1 (Afromini rev0) or does it take too much space? ok, probably everything needs to much space for F1 😋
All my planes (now seven) since this project started are flying with F1's (cc3d and afronazes). Some of them have flyied amazing long fpv flights with minimosd and ltm telemetry. It is easy to see that everybody is moving to F4+ boards (maybe including myself soon), but I dont see the reason to drop F1's. Just some crashes and two lost planes, but because of the pilot, not the flight controller hardware or software :-)
F1's simply would not have the new features of the future releases, but they could stay alive, for planes at least, without many more requirements (LTM + OSD is amazing in such cheap boards).
Anyway, the 1.6 version is working fine in naze and cc3d. For now I dont need anything else, althought for sure I will enjoy very much to test new future versions in F3+ or F4+ boards.
Thanks you all for your efforts.
One important thing to remember is that even if F1 is dropped it's not like current release is going to stop working or worse.
At some point the threshold will be reached where removing features may actually make the old builds "better" than new ones.
Ofc if one can magically save flash it's great to keep support, but if it's a matter of always removing features I also believe at some point it will need stop. And if any bugfixes makes it back into "legacy" we are lucky.
@oleost I think this is something most users forget. Not releasing new version for F1 does not mean older versions will not work
I also have a few planes built on F1 (naze rev5). F1 is ok for fixed-wing, and might still be able to benefit from some of the newer nav features/improvements that might be released in the near future. A custom-build system or some other means to select which features to include would be great.
Isn't about time to separate Fixed-wing and MR code into separate branches? It seems like it would make things flow a lot better in the long-run. All platforms could share the core code, but then each platform can have custom-tailored code based on necesities and most common setup.APM does this, why can't iNav?
We've considered separating FW and MR code, but it doesn't really make much difference - platform-specific code is minimal and benefit will not be worth the effort.
ok, understood.
how about a custom build system where user can add/remove/select features and then download a build for that feature set? I'm thinking of something similar to how OpenTX Companion allows the user to select which firmware options are desired & then download the image corresponding to that selection.
Could something like this be feasible?
Yes, but I guess the already existent '#ifdef' preprocessor statements are the way to do 'custom builds'.
Anyway, if F1's are going to be droppped, at least this should be done with a good rock-solid and stable release (as 1.6 seems to be). And let these binaries to be easily downloaded from the configurator or github, because as @digitalentity said, there are still a lot of F1's out there.
There are no plans to drop F1s yet. This issue is just to recognise the fact that they will become increasingly difficult to support and we should plan for that.
I also think 1.6 stable would be the right release to stop improving F1 targets. Just one thing i dont like: 32bit restricting flight time....
Yes, the 32bit restricting flight time is a really bad thing to drop F1s for ever with that issue.
@sppnk , 64bit time is not something that has been dropped from F1s. They never had it. It has been added for F3 and F4 targets.
I know @martinbudden , what I meant is that leaving F1s with that restricted flight time (because a bug or no bug) is not a good thing (IMHO).
It was explained to me that it is an inherent problem for 32bits targets, but I dont know if there is any way to solve it. I so, I could open an issue...:-)
OT: where can I learn about the 32-bit time limit issue? I googled around but couldn't find anything. Doesn't the time simply roll-over as soon as the uint32 overflows (this is how it works in ATMega-land) ? If not, then wouldn't it be possible to manually roll it over prior to having it overflow? Just curious...
@csurf "On F1 the system time will overflow at 1 hour, 11 minutes, 35 seconds and may cause some systems to malfunction" - there won't be many troubled by this limitation :) F1 should be supported for a little longer because there are 1000's out there, just drop BB and LTM support to stretch it's life.