Catapult and loading arm code