UAV::Pilot::NavCollector::AckEvents
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"; });
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.
UAV::Pilot::NavCollector
UAV::Pilot::EasyEvent
nav_ack_on
nav_ack_off
nav_ack_toggle
To install UAV::Pilot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UAV::Pilot
CPAN shell
perl -MCPAN -e shell install UAV::Pilot
For more information on module installation, please visit the detailed CPAN module installation guide.