PENGUIN ROBOT Sound Compass - the Code
This code turns Penguin robot into a unique compass.
The speed of Penguin chirping will determine directions.
The chirping is borrowed from the Penguinese Language
program (coming soon). Vision is not required.
Penguin Sound Compass
penguin_sound_compass.bpx
Turns Penguin into a compass based on sound
humanoido
The speed of Penguin chirping will determine directions.
The chirping is borrowed from the Penguinese Language
program (coming soon). Vision is not required.
Penguin Sound Compass
penguin_sound_compass.bpx
Turns Penguin into a compass based on sound
humanoido
' The faster Penguin chirps, the closer he is to North. ' The chirping speed is directly proportional to the compass angle. ' For example, with 0 to 360 degrees, 0 is the slowest and 360 ' the fastest. ' ' This lets you know when penguin is at North (360). ' Procedure: turn Penguin until the sound is fastest, abruptly ' becomes slowest, then turn Penguin counterclockwise until the ' chirping becomes fastest again. This is the North point at 360 deg. ' ' 90 - East ' 180 - South ' 270 - West ' 360 - North
humanoido said...
The summary of compass code is as follows:
1) Penguin Sound Compass
2) Penguin Scout Compass
3) Penguin Scouting Feet
The upcoming 4th program in the continuing series is amazing:
penguin_compass_plotter
With Compass Plotter, Penguin will report cardinal compass positions
to the debug screen, scale, and graphically plot to a virtual compass band,
while constantly updating the position in real time graphics! This is another
program you won't want to miss!