robotic maneuver (futaba radio controller)

is there any coding or libraries that might help me improve the code?

Quite possibly.