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
Содержание Air:bit 2
Страница 1: ...Air bit 2 makekit no The micro bit drone...
Страница 4: ...4 If you experience trouble getting the air bit to fl y please see page 61...
Страница 12: ...Tools 12 Small philips screwdriver Socket wrenches 5 5mm included...
Страница 14: ...14 Assembly...
Страница 27: ...27 Ready for coding...
Страница 28: ...Coding...
Страница 29: ...29 PARTY Five values to control the drone...
Страница 31: ...Start coding makecode microbit org...
Страница 36: ...Code blocks We will be using these blocks 36...
Страница 37: ...37 More blocks...
Страница 39: ...39 Solution...
Страница 41: ...41 Solution...
Страница 43: ...43 Solution...
Страница 46: ...46 Solution...
Страница 48: ...48 Throttle 25 goes in the inner block Solution Pixel Y 4 throttle 25...
Страница 52: ...52 Two solutions With mapping With functions...
Страница 55: ...55 Bottom of forever block Remember capital letters Yaw can be skipped Solution Your unique radio group...
Страница 60: ...60 How to fl y video https youtu be VMF9uehLfg8...
Страница 63: ...63 Yaw Solution...