| 1 | # Copyright (c) 2014 Timm Murray | ||
| 2 | # All rights reserved. | ||
| 3 | # | ||
| 4 | # Redistribution and use in source and binary forms, with or without | ||
| 5 | # modification, are permitted provided that the following conditions are met: | ||
| 6 | # | ||
| 7 | # * Redistributions of source code must retain the above copyright notice, | ||
| 8 | # this list of conditions and the following disclaimer. | ||
| 9 | # * Redistributions in binary form must reproduce the above copyright | ||
| 10 | # notice, this list of conditions and the following disclaimer in the | ||
| 11 | # documentation and/or other materials provided with the distribution. | ||
| 12 | # | ||
| 13 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
| 14 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 15 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 16 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
| 17 | # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
| 18 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
| 19 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
| 20 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
| 21 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 22 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
| 23 | # POSSIBILITY OF SUCH DAMAGE. | ||
| 24 | package UAV::Pilot::WumpusRover; | ||
| 25 | 6 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | 6 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 6 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | |||
| 30 | # ABSTRACT: Control a rover over WiFi with a video feed | ||
| 31 | |||
| 32 | 6 | ▶ | use constant DEFAULT_PORT => 49_000; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | 6 | ▶ | use constant DEFAULT_VIDEO_PORT => 49_001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | |||
| 35 | |||
| 36 | 6 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 37 | 6 | __PACKAGE__->meta->make_immutable; | |
| 38 | 6 | 1; | |
| 39 | __END__ | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | UAV::Pilot::WumpusRover - Control a rover over WiFi with a video feed | ||
| 44 | |||
| 45 | =head1 DESCRIPTION | ||
| 46 | |||
| 47 | The WumpusRover was a project started specifically around C<UAV::Pilot>. The | ||
| 48 | library was always intended to be used on more than just the Parrot AR.Drone. | ||
| 49 | With this addition, it is not only supporting a custom rover project, but also | ||
| 50 | running much of the code on the rover itself. | ||
| 51 | |||
| 52 | The protocol is similar to ArduPilot protocol, taken from here: | ||
| 53 | |||
| 54 | L<http://code.google.com/p/ardupilot-mega/wiki/Protocol> | ||
| 55 | |||
| 56 | No tests were done against an existing ArduPilot implementation, so things may | ||
| 57 | not be 100% compatible. It should be close, however. It is a goal to eventually | ||
| 58 | be compatible; this will happen Soon(tm). | ||
| 59 | |||
| 60 | =head1 LICENSE | ||
| 61 | |||
| 62 | Copyright (c) 2014 Timm Murray | ||
| 63 | All rights reserved. | ||
| 64 | |||
| 65 | Redistribution and use in source and binary forms, with or without | ||
| 66 | modification, are permitted provided that the following conditions are met: | ||
| 67 | |||
| 68 | * Redistributions of source code must retain the above copyright notice, | ||
| 69 | this list of conditions and the following disclaimer. | ||
| 70 | * Redistributions in binary form must reproduce the above copyright | ||
| 71 | notice, this list of conditions and the following disclaimer in the | ||
| 72 | documentation and/or other materials provided with the distribution. | ||
| 73 | |||
| 74 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
| 75 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 76 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 77 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
| 78 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
| 79 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
| 80 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
| 81 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
| 82 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 83 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
| 84 | POSSIBILITY OF SUCH DAMAGE. | ||
| 85 | |||
| 86 | =cut | ||