I am testing this but the servo won't move.
Brown wire is connected to GNR
Red wire is connected to 5v
Orange wire is connected to D7 of the Arduino MEGA at channel A
I am testing this script:
Code: Select all
output_id = hw_output_pwm_add("ARDUINO_MEGA2560_A_D7", 50, 0.05)
function FlapsPOS(flaps)
hw_output_pwm_duty_cycle(output_id, 0.05 + (0.1 * flaps) )
end
fsx_variable_subscribe("FLAPS HANDLE PERCENT", "Percent Over 100", FlapsPOS)
What am i missing here??