Skip to content

Commit c17f676

Browse files
author
Shashank Date
committed
Last minute changes during live demo at the conf
1 parent 7f47763 commit c17f676

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

hello_edu.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def receive
6262
end
6363
end
6464

65-
## Capture Video of the flying drones if connected to
65+
## Capture Video of the flying drones if connected to
6666
## Raspberry Pi with camera
6767
def capture_video(milli_seconds)
6868
return if ($error || (RUBY_PLATFORM != 'arm-linux-gnueabihf'))
@@ -78,7 +78,7 @@ def capture_video(milli_seconds)
7878
end
7979

8080
# Create and start a listening thread that runs in the background
81-
# This utilizes our receive functions and will continuously
81+
# This utilizes our receive functions and will continuously
8282
# monitor for incoming messages
8383
th = Thread.new { receive }
8484

@@ -95,11 +95,12 @@ def capture_video(milli_seconds)
9595
send(['takeoff'], 7)
9696

9797
# Flip
98-
# send(['flip r','flip l'], 7)
98+
send(['flip r','flip l'], 7)
9999

100100
# Flip again
101-
# send(['flip l','flip r'], 7)
102-
# send(['ccw 90','cw 90'], 4)
101+
send(['flip l','flip r'], 7)
102+
103+
send(['ccw 90','cw 90'], 4)
103104

104105
# Land
105106
send(['land'], 2)

0 commit comments

Comments
 (0)