Mission: 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 IR sensor.  They will then be challenged to do pin-point type landings using only the single IR sensor.

IR 18


This code relies entirely on the bottom right IR sensor input.  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 their right IR sensor at the right moment to maneuver their CoDrone.

For example,

the right sensor is triggered,
the CoDrone throttles at 100 until the right sensor is triggered again,
the CoDrone pitches at 70 until the right sensor is triggered again,
the CoDrone lands.

An example of the code is shown below:

Each time the right IR sensor is triggered, the drone will move on to the next Step in the command:

and as the Step is changed, the CoDrone will perform a different part of the maneuver:


Controller Inputs:


  • The bottom left IR Sensor (IR 11) is labeled bt1 in the example code and controls the kill-switch function.  Cover this sensor to instantly stop all motors on the CoDrone.  There is no penalty for using the Stop command.

  • The bottom right IR Sensor (IR 18) is labeled bt8 in the example code and increments the Step variable.  By triggering this sensor, the CoDrone will move on to the next step in the program.


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.

3. 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.