mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 11:37:06 +08:00
*** empty log message ***
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<variable name="downlink_serial_port" value="/dev/ttyUSB0"/>
|
||||
<variable name="fbw_serial_port" value="/dev/ttyS1"/>
|
||||
<variable name="ap_serial_port" value="/dev/ttyS0"/>
|
||||
<variable name="ivy_bus" value="127.25.255.255:2009"/>
|
||||
<variable name="ivy_bus" value="127:2009"/>
|
||||
<variable name="map" value="sinsat.xml"/>
|
||||
<variable name="flight_plan" value="flight_plans/muret1.xml"/>
|
||||
<variable name="multimon_demod" value="AFSK4800_P"/>
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
<section name="sessions">
|
||||
<session name="soft sim 2">
|
||||
<variable name="ivy_bus" value="127.25.255.255:3333"/>
|
||||
<variable name="ivy_bus" value="127:3333"/>
|
||||
<program name="receive"/>
|
||||
<program name="sim"><arg flag="-a" constant="Thon1"/></program>
|
||||
<program name="sim"><arg flag="-a" constant="Thon2"/></program>
|
||||
@@ -91,7 +91,7 @@
|
||||
</session>
|
||||
|
||||
<session name="soft sim 1">
|
||||
<variable name="ivy_bus" value="127.25.255.255:2001"/>
|
||||
<variable name="ivy_bus" value="127:2001"/>
|
||||
<program name="receive"/>
|
||||
<program name="sim"><arg flag="-a" constant="Thon1"/></program>
|
||||
<program name="cockpit"></program>
|
||||
|
||||
@@ -32,6 +32,9 @@ use Paparazzi::Aircraft;
|
||||
use Paparazzi::Flightplan;
|
||||
use Paparazzi::Airframe;
|
||||
|
||||
use LWP::Simple;
|
||||
|
||||
|
||||
sub populate {
|
||||
my ($self, $args) = @_;
|
||||
$self->SUPER::populate($args);
|
||||
@@ -97,7 +100,10 @@ sub on_config {
|
||||
|
||||
my $fp_url = $fields->{flight_plan};
|
||||
if (defined $fp_url) {
|
||||
# print "in AircraftsManager : on_config creating new flight plan\n";
|
||||
# print "in AircraftsManager : on_config creating new flight plan\n";
|
||||
my $doc = LWP::Simple::get $fp_url;
|
||||
print "##### $doc\n";
|
||||
|
||||
my $fp = Paparazzi::Flightplan->new(-url => $fp_url);
|
||||
# use Data::Dumper;
|
||||
# print "##### waypoints\n".Dumper($fp->get('-waypoints'));
|
||||
|
||||
Reference in New Issue
Block a user