April 16, 201016 yr Hi everybodyHow do I enable autopilot airspeed speed?Here is my code, it doesn't work, please help me to understand what I'm doing wrong? if( IAS_key == -1 && AUTOPILOT_AIRSPEED_HOLD_var.var_value.n == 1 ) { trigger_key_event (KEY_AP_AIRSPEED_OFF , 0); }if( IAS_key == 0 && AUTOPILOT_AIRSPEED_HOLD_var.var_value.n == 0 ) { trigger_key_event ( KEY_AP_SPD_VAR_SET, Speed_Ind); // Speed_Ind is a value of IAS I want AP will hold trigger_key_event (KEY_AP_AIRSPEED_ON , 1); }
April 16, 201016 yr Commercial Member Are you absolutely sure that the autopilot is turned on? You might want to add an AUTOPILOT_AVAILABLE check.-Dai
April 16, 201016 yr Problem is found , I didn't enable auto throttle trigger_key_event ( KEY_AUTO_THROTTLE_ARM, 0);
Create an account or sign in to comment