Skip to content

Commit

Permalink
bebop: update ps3 and video example to enable the video stream
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Dec 26, 2016
1 parent 66a6411 commit 12c1251
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/bebop_ps3_video.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
This example will connect to the Parrot Bebop allowing you to control
it using a PS3 controller.
It also streams the drone video to a webpage via ffserver.
This requires you to have both ffmpeg and ffserver installed
on your computer.
In order to run this example you will first need to start ffserver with:
$ ffserver -f ff.conf
then in a separate terminal run this program:
$ go run bebop_ps3_video.go
You can view the video feed by navigating to
http://localhost:8090/bebop.mjpeg in a web browser.
*NOTE* firefox works best for viewing the video feed.
*/
package main

import (
Expand Down Expand Up @@ -62,6 +81,7 @@ func main() {
drone := bebop.NewDriver(bebopAdaptor)

work := func() {
drone.VideoEnable(true)
video, _, _ := ffmpeg()

go func() {
Expand Down

0 comments on commit 12c1251

Please sign in to comment.