@@ -62,7 +62,7 @@ def receive
62
62
end
63
63
end
64
64
65
- ## Capture Video of the flying drones if connected to
65
+ ## Capture Video of the flying drones if connected to
66
66
## Raspberry Pi with camera
67
67
def capture_video ( milli_seconds )
68
68
return if ( $error || ( RUBY_PLATFORM != 'arm-linux-gnueabihf' ) )
@@ -78,7 +78,7 @@ def capture_video(milli_seconds)
78
78
end
79
79
80
80
# 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
82
82
# monitor for incoming messages
83
83
th = Thread . new { receive }
84
84
@@ -95,11 +95,12 @@ def capture_video(milli_seconds)
95
95
send ( [ 'takeoff' ] , 7 )
96
96
97
97
# Flip
98
- # send(['flip r','flip l'], 7)
98
+ send ( [ 'flip r' , 'flip l' ] , 7 )
99
99
100
100
# 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 )
103
104
104
105
# Land
105
106
send ( [ 'land' ] , 2 )
0 commit comments