UNIT 20
UNIT 20
Lesson 20 40 mins
TRUTH OR DARE (PLUTO BLOCKS) (40 mins)
This game originally uses a spinning bottle. With this project it will be replaced by a spinning drone! The spinning drone will point the participants and when it stops spinning, the participant to which it points will have to choose between Truth or Dare!
Pluto Blocks allows you to set the desired Yaw angle of the drone. Whatever angle you set, the drone will turn to that angle. Using this idea, we will program the drone to turn to a specific Yaw angle chosen at random. Use a timer block as well to ensure that the drone gets enough time to reach an angle before getting a new command to turn to a new angle.
Fly this project in Headfree mode to get a better control over drone.
Yaw angles for participants

UsethisprojecttoplayTruthorDareamong4participants. Eachparticipantcanstayat0°, 90°,180°and270°Yawangleofthedrone.
In the traditional game, the surprise element is the time for which the bottle spins. In this upgraded version, the surprise element is random spinning of the drone to select a participant. So start playing!
By making a few changes in the code, convert it so that it can be played by six players.