do_set_servo

Can the do_set_servo commands be autonomous to the classic “mission”? I’d like to toggle 7, 8 and 9 low when the altitude is greater than 20 feet, and toggle them back high when the altitude is less than 20 feet or when RTL is activated.
This is a simple routine to raise the landing gear and turn off a light on launch and lower the gear and turn on the light upon landing or RTL, and I can’t see a way to automate it.