Class: Artoo::Drivers::ArdroneVideo
- Defined in:
- lib/artoo/drivers/ardrone_video.rb
Overview
Ardrone video driver behaviors
Instance Attribute Summary
Attributes inherited from Driver
Instance Method Summary collapse
Methods inherited from Driver
#connection, #event_topic_name, #initialize, #interval, #method_missing, #pin
Methods included from Celluloid
Constructor Details
This class inherits a constructor from Artoo::Drivers::Driver
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Artoo::Drivers::Driver
Instance Method Details
#handle_frame(*params) ⇒ Object
15 16 17 18 19 |
# File 'lib/artoo/drivers/ardrone_video.rb', line 15 def handle_frame(*params) frame = connection.video_parser.get_frame publish(event_topic_name("update"), "frame", frame) publish(event_topic_name("frame"), frame) end |
#start_driver ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/artoo/drivers/ardrone_video.rb', line 7 def start_driver every(interval) do handle_frame end super end |