16 Dec 2014 02:54:37 UTC
- Distribution: UAV-Pilot-WumpusRover-Server
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (0 / 0 / 24)
- KwaliteeBus factor: 0
- % Coverage
- License: bsd
- Perl: v5.14.0
- Activity24 month
- Download (11.57KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionTMURRAY Timm Murray
- REQUIRED METHODS/ATTRIBUTES
Role for WumpusRover Backends. A Backend connects directly to the hardware that drives the rover. For instance, the RaspberryPiI2C backend communicates over the Raspberry Pi's I2C interface using a protocol shared by the wumpus_rover Arduino implementation.
Specifies if this backend has been started yet. Starting it is done by passing a
process_packet( $packet )
Takes the packet and does something with it. Usually, this something is a sensible thing to do.
_packet_request_startup( $packet, $server )
Passed a packet and the server associated with the connection. Handles the initial startup.
_packet_request_trims( $packet, $server )
Passed a packet and the server associated with the connection. Handles the radio trims.
_packet_request_out( $packet, $server )
Passed a packet and the server associated with the connection. Handles the radio outputs, which is the primary way of moving.
Returns the min/max settings for each channel that will be output by this backend. Channels are numbered 1 through 8.
Why do we map the values at this level? For the Arduino output, wouldn't it be better for it to take specified values and convert it to its own output internally? Perhaps. The reason why it was chosen to do the value mapping here is to make the Arduino end as simple-stupid as possible.
Module Install Instructions
To install UAV::Pilot::WumpusRover::Server, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install UAV::Pilot::WumpusRover::Server
For more information on module installation, please visit the detailed CPAN module installation guide.