Flightmode Objects Management
Basic System Manager Update from Ayoung
Few issues in the code that Hardy noticed (i.e. DMA config stuff) will handle accordingly
Will be testing on RC controller on Wed after general meeting
AM needs a flight-mode config object to know what flight mode control algorithm to run. 2 options:
Instantiate all flight mode objects into an array on system boot and use a pointer to switch between them
Pros: Faster to switch flightmode using a pointer
Cons: Memory overhead, harder to implement
Instantiate flight mode objects using a constructor on the fly
Pros: No memory overhead, easier to implement
Cons: Slower speed by needing to construct and destroy objects
Decision: Use method 2. since it’s fast enough and is easiest to implement, implement method 1. if more speed needed in switching flight modes.