Timm Murray > UAV-Pilot-0.8 > UAV::Pilot::NavCollector::AckEvents

Download:
UAV-Pilot-0.8.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Source   Latest Release: UAV-Pilot-1.0

NAME ^

  UAV::Pilot::NavCollector::AckEvents

SYNOPSIS ^

   my $easy_event = UAV::Pilot::EasyEvent->new;
   my $ack = UAV::Pilot::NavCollector::AckEvents->new({
       easy_event => $easy_event,
   });

   $easy_event->add_event( 'nav_ack_on' => sub {
       say "ACK control bit is on";
   });
   $easy_event->add_event( 'nav_ack_off' => sub {
       say "ACK control bit is off";
   });
   $easy_event->add_event( 'nav_ack_toggle' => sub {
       say "ACK control bit toggled";
   });

DESCRIPTION ^

Does the UAV::Pilot::NavCollector role to fire off events into UAV::Pilot::EasyEvent based on the ACK control bit. Each nav packet with the bit on will fire a nav_ack_on event, and nav_ack_off when off. If the state toggles, nav_ack_toggle is sent.

syntax highlighting: