Snap Mission 2: Trigger Finger
The Trigger Finger mission is a timing based challenge.  The contestant will write a code that controls the CoDrone entirely by preset commands and a single button.  They will then be challenged to do pin-point type landings using only the single button for controls.


This code relies entirely on the up key.  Much like the Pin-Point mission, the goal of this challenge is to take off and land autonomously in target zones.  Instead of using timers, Trigger Finger relies on the player to trigger the button at the right moment to maneuver their CoDrone.

For example,

  • the code is started,
  • the CoDrone takes off until the button is triggered again,
  • the CoDrone pitches at 75 until the button is triggered again,
  • the CoDrone rolls at 50 until the button is triggered again,
  • the CoDrone lands.

An example of the code is shown below:

Note that we have to wait until the button is pressed and then wait until the button is released again to move to the next step. This is because if we wait only for the button to be pressed, as soon as you press the button it will move to the next command and very quickly be at the next wait until button. Since the code runs extremely fast you will not be able to let go of the key quickly enough to reliably move one step at a time. This code forces it as you have to both press and release the key.

How to play:

  1. Setup
    • Setup a starting zone and a landing zone.  The competitors will attempt to take off from the starting zone and attempt to land in the specified landing zone using only the right IR sensor to control their CoDrone.
  2. Begin
    • Begin by placing the CoDrone in the starting zone.  When the player is ready, they can initiate the first maneuver to begin the challenge.
  3. Timing
    • Keep your finger ready on the bottom right IR sensor and make sure you time your next maneuver correctly.  Try to get the CoDrone to land in the landing zone.  You can use the kill-switch to land.
  4. Revise
    • Try again! Revise your code if you need to.


  • You can use the kill-switch to drop the drone in the landing zone to complete the mission
  • Multiple players will alternate turns
  • All parts of the CoDrone that are touching the ground must be within the landing zone for it to count
  • Each contestant gets a set time to complete the challenge
  • First one to successfully land in the landing zone wins



There can be multiple variations of this mission ranging in difficulty.  A few variations will include:

  • A landing pad straight in front of the starting pad
  • A landing pad diagonally away from the starting pad
  • A hoop or tunnel to fly through to get to the landing pad
  • For RokitSmart owners: Create a moving landing pad with the RokitSmart kit and try to land on it using the CoDrone

The kill-switch can be used to land in the landing zone. Challenges should be timed for competitions.