Some code for convertoplane on Arduino Mega 2560