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.

Summary

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

For example,

the green flag is pressed,
the CoDrone throttles at 100 until the space bar is triggered,
the CoDrone pitches at 70 until the space bar is triggered again,
the CoDrone lands.

An example of the code is shown below:

Note that for our code to work we not only need to wait for the space key to be pressed, but also for it to be released. Since it runs through our code very quickly as soon as we pressed the space key it would stop waiting for the first press. It would quickly set the pitch values and then wait for the space key to be pressed. However since it runs through the code so quickly there would be no time to let go of the key, thus it would still be pressed and just skip over the wait. So we need to wait for it to be pressed and released.

The rules are the same as Mission 1: Pin-Point.

Rules

  • 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

Customization

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.