[generators] update gen_autopilot

- add default cases to switch
- fix ifdef AUTOPILOT_CORE_<name>_C
[radio_control] convert macros to functions and cleanup