Code for controlling AirSlicer in flight