Throttle
• Make a variable called Throttle
• Use the buttons A and B to change the throttle. A should reduce it with 5, B should increase it with 5
• Use Show Number (in the forever loop) to å verify that throttle is changing correctly
• When above 40, throttle should only change by 1 for better precision when drone is hovering.
Roll og Pitch
• Make a variable called Roll and one called Pitch
• In the forever loop: Set the variables roll and pitch to the input -> more -> rotation.roll and rotation.pitch
38
PARTY
pitch
, arm,
roll
,
throttle
, yaw
Summary of Contents for Air:bit 2
Page 1: ...Air bit 2 makekit no The micro bit drone...
Page 4: ...4 If you experience trouble getting the air bit to fl y please see page 61...
Page 12: ...Tools 12 Small philips screwdriver Socket wrenches 5 5mm included...
Page 14: ...14 Assembly...
Page 27: ...27 Ready for coding...
Page 28: ...Coding...
Page 29: ...29 PARTY Five values to control the drone...
Page 31: ...Start coding makecode microbit org...
Page 36: ...Code blocks We will be using these blocks 36...
Page 37: ...37 More blocks...
Page 39: ...39 Solution...
Page 41: ...41 Solution...
Page 43: ...43 Solution...
Page 46: ...46 Solution...
Page 48: ...48 Throttle 25 goes in the inner block Solution Pixel Y 4 throttle 25...
Page 52: ...52 Two solutions With mapping With functions...
Page 60: ...60 How to fl y video https youtu be VMF9uehLfg8...
Page 63: ...63 Yaw Solution...