Orientation Lessons and Code

This action provides information about the finch's current orientation in the finch reference frame. Options include Beak up, Beak down, Tilt left, Tilt right, Level, and Upside down.  In between may appear when the robot is in an orientation that is not perfectly aligned with the previous text outputs. 


 Block Code  Copy and Paste Code
 OS1 orientation Large use Libraries.Robots.BirdBrain.Finch
Finch finch
repeat until finch:GetButton("B")
text fincho=finch:GetOrientation()
output "Finch Orientation: " + fincho
finch:Pause(2)
end
finch:Disconnect()