Correct bug which could arise when saving new flight modes
while using HiTL.
1) Fix formatting to comply with linux kernel standard.
2) Remove unused includes.
Changed roundoff correction frequency.
Move several static variables to a global structure which is
allocated only if the module runs.
Fixed doubles promotion.
Added support code refactor to all Makefiles.