Basic code for driving, compressor and shooting