UAV::Pilot::WumpusRover::Packet
Role for WumpusRover packets. These are based on the ArduPilot protocol packets, as described here:
http://code.google.com/p/ardupilot-mega/wiki/Protocol
No attempts have yet been made to test this against an existing ArduPilot implmentation, but it should be close.
Do not create Packets directly. Instead, use UAV::Pilot::WumpusRover::PacketFactory.
UAV::Pilot::WumpusRover::PacketFactory
Does the UAV::Pilot::Logger role.
UAV::Pilot::Logger
write( $fh )
Writes the packet to the given filehandle.
Recalculates the checksum based on current field values.
Returns the packet fields in a single scalar full of bytes.
Returns the packet field values in the order they appear in payload_fields().
payload_fields()
Returns a byte array of all the packet fields in the order they appear in payload_fields().
Creates a unique key for this packet.
Fixed bytes that start every packet
Protocol version
First checksum byte
Second checksum byte
ID for this type of message
Arrayref. A list of field names in the order they appear in the packet.
Hashref. Keys match to an entry in payload_fields. Values are the length in bytes of that field.
payload_fields
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.