The High Noon mission will be a timing based challenge.  The CoDrone will be programmed to Roll side to side continuously.  Targets or random objects will be aligned in a row across from the CoDrone, much like a shooting gallery.  When a sensor is triggered, the CoDrone will pitch forward at high speed.  The competitors will compete on trying to knock down as many objects/targets as possible.  The kill switch will be allowed and the Throttle control will be preserved for altitude control.

We will start by programming the Throttle so that we can keep it in the air.

Next we need to add in the constant rolling side to side. We will have it move one second in each direction. To add this into our Throttle control code would be difficult. So what we can do is have a separate forever loop that will be setting the Roll values. It will not have a sending command in it though, it will use the sending command in the Throttle control so that we are only sending to the CoDrone once.

Then we will add in another one that will move the CoDrone forward after we press another button. We need to be sure that it also stops the other programs so that it will stop moving side to side as it goes forward.

Full Code:

Challenge: Try to knock down some targets at the other end of the room. You can also try to land on a landing pad from across the room. You may need to adjust the forward distance so that it will cross your room. Also for more challenge you can increase the roll values so that it will be going faster.