Automatic Code Generation of an Attitude Control System for the Multi-Mission Platform