JanWielgus / STM_FlightController

0 stars 0 forks source link

Remake virtual sticks at virtual pilot #54

Closed JanWielgus closed 4 years ago

JanWielgus commented 4 years ago

Now each flight mode has its own copy of virtual sticks. This is a wrong approach. You have to make virtual sticks a static field in flight mode class. Each flight mode will bring values from there and store values in there (that they need to use or change). Before running any fight mode, virtual pilot will store there received sticks values. Flight mode implementation will next decide, whether run its own code first, or its base flight mode.

Current implementation also made impossible to implement posHold flight mode, because stabilize always brought sticks values from Storage