mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
*** empty log message ***
This commit is contained in:
@@ -328,6 +328,7 @@
|
|||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="CAM_STATUS" ID="14">
|
<message name="CAM_STATUS" ID="14">
|
||||||
|
<field name="ac_id" type="string"/>
|
||||||
<field name="cam_east" type="float" unit="m"/>
|
<field name="cam_east" type="float" unit="m"/>
|
||||||
<field name="cam_north" type="float" unit="m"/>
|
<field name="cam_north" type="float" unit="m"/>
|
||||||
<field name="target_east" type="float" unit="m"/>
|
<field name="target_east" type="float" unit="m"/>
|
||||||
|
|||||||
@@ -64,6 +64,11 @@ sub populate {
|
|||||||
target_east => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
target_east => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
target_north => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
target_north => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
|
||||||
|
cam_east => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
cam_north => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
target_east => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
target_north => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
|
||||||
throttle => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
throttle => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
rpm => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
rpm => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
temp => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
temp => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
@@ -71,6 +76,18 @@ sub populate {
|
|||||||
amp => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
amp => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
energy => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
energy => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
|
||||||
|
rc_status => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
rc_mode => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
|
||||||
|
gps_hybrid_mode => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
gps_hybrid_factor => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
contrast_status => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
contrast_value => [S_NOINIT, S_PASSIVE, S_RDWR, S_OVRWRT, S_NOPRPG, 0.],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,10 +123,14 @@ sub on_ac_msg {
|
|||||||
sub listen_to_ac {
|
sub listen_to_ac {
|
||||||
my ($self, $ac_id) = @_;
|
my ($self, $ac_id) = @_;
|
||||||
my @ac_events = ( ['FLIGHT_PARAM', \&on_ac_msg],
|
my @ac_events = ( ['FLIGHT_PARAM', \&on_ac_msg],
|
||||||
['NAV_STATUS', \&on_ac_msg],
|
|
||||||
['AP_STATUS', \&on_ac_msg],
|
['AP_STATUS', \&on_ac_msg],
|
||||||
|
['NAV_STATUS', \&on_ac_msg],
|
||||||
|
['CAM_STATUS', \&on_ac_msg],
|
||||||
['ENGINE_STATUS', \&on_ac_msg],
|
['ENGINE_STATUS', \&on_ac_msg],
|
||||||
# ['SATS', \&ivyOnSats],
|
['FLY_BY_WIRE', \&on_ac_msg],
|
||||||
|
['INFRARED', \&on_ac_msg],
|
||||||
|
['INFLIGH_CALIB', \&on_ac_msg],
|
||||||
|
# ['SATS', \&ivyOnSats],
|
||||||
);
|
);
|
||||||
foreach my $event (@ac_events) {
|
foreach my $event (@ac_events) {
|
||||||
Paparazzi::IvyProtocol::bind_msg("ground", "ground", $event->[0],
|
Paparazzi::IvyProtocol::bind_msg("ground", "ground", $event->[0],
|
||||||
|
|||||||
Reference in New Issue
Block a user