UAV::Pilot::WumpusRover::PacketFactory
# Where $packet_in is a bunch of bytes read from the network: my $packet = UAV::Pilot::WumpusRover::PacketFactory->read_packet( $packet_in ); # Create a fresh packet that we might later send over the network: my $new_packet = UAV::Pilot::WumpusRover::PacketFactory->fresh_packet( 'Ack' );
Creates new packets, either for reading a bunch of bytes off the network, or for fresh ones that we'll send back over the network.
read_packet( $bytes )
Takes a bunch of bytes and returns a UAV::Pilot::WumpusRover::Packet object based on that data.
UAV::Pilot::WumpusRover::Packet
fresh_packet( $type )
Creates a new packet based on $type and returns it. The $type parameter should be one of the classes under UAV::Pilot::WumpusRover::Packet::, such as Ack or RadioOutputs.
$type
UAV::Pilot::WumpusRover::Packet::
Ack
RadioOutputs
To install UAV::Pilot::WumpusRover, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UAV::Pilot::WumpusRover
CPAN shell
perl -MCPAN -e shell install UAV::Pilot::WumpusRover
For more information on module installation, please visit the detailed CPAN module installation guide.