Code for the UAV payload