Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mission Computer and payload computer support (#2053)
* Copilot module * Added mission computer status * modules_parse_datalink() now accepts arguments * Update pprzlink * Update cartography module to comply with the extended CAMERA_SNAPSHOT message
- Loading branch information
1 parent
8f1e082
commit ca68570
Showing
13 changed files
with
478 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<layout width="1280" height="709"> | ||
<columns> | ||
<rows SIZE="600"> | ||
<widget NAME="strips" SIZE="225"/> | ||
<widget NAME="aircraft" SIZE="350"/> | ||
<widget NAME="alarms"/> | ||
</rows> | ||
<rows> | ||
<widget NAME="map2d"> | ||
<papget type="message_field" display="gauge" x="77" y="304"> | ||
<property name="field" value="CAMERA_PAYLOAD:used_memory"/> | ||
<property name="scale" value="1.0"/> | ||
<property name="min" value="0."/> | ||
<property name="max" value="100."/> | ||
<property name="size" value="50."/> | ||
<property name="text" value="Used memory(%)"/> | ||
</papget> | ||
<papget type="message_field" display="gauge" x="74" y="198"> | ||
<property name="field" value="CAMERA_PAYLOAD:used_disk"/> | ||
<property name="scale" value="1.0"/> | ||
<property name="min" value="0."/> | ||
<property name="max" value="100."/> | ||
<property name="size" value="50."/> | ||
<property name="text" value="Used disk(%)"/> | ||
</papget> | ||
<papget type="message_field" display="text" x="45" y="414"> | ||
<property name="field" value="CAMERA_PAYLOAD:error_code"/> | ||
<property name="size" value="15."/> | ||
<property name="format" value="Error code: %.0f"/> | ||
<property name="color" value="green"/> | ||
</papget> | ||
<papget type="message_field" display="led" x="151" y="395"> | ||
<property name="scale" value="1"/> | ||
<property name="field" value="CAMERA_PAYLOAD:error_code"/> | ||
<property name="size" value="15."/> | ||
<property name="text" value="Error:"/> | ||
<property name="test_value" value="0"/> <!-- will be green only if value==0 --> | ||
<property name="test_invert" value="true"/> | ||
</papget> | ||
<papget type="message_field" display="led" x="152" y="366"> | ||
<property name="scale" value="1"/> | ||
<property name="field" value="CAMERA_PAYLOAD:door_status"/> | ||
<property name="size" value="15."/> | ||
<property name="text" value="Door status:"/> | ||
<property name="test_value" value="2"/> <!-- will be green only if value==2 --> | ||
<property name="test_invert" value="true"/> | ||
</papget> | ||
|
||
</widget> | ||
</rows> | ||
</columns> | ||
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="copilot" dir="mission"> | ||
<doc> | ||
<description> | ||
Mission Computer module, interfacing the mission computer (also known as Copilot), | ||
based losely on | ||
ISaAC: The Intelligent Safety and Airworthiness Co-Pilot module | ||
Based on paper "A Payload Verification and Management Framework | ||
for Small UAV-based Personal Remote Sensing Systems" by Cal Coopmans | ||
and Chris Coffin. Link: http://ieeexplore.ieee.org/abstract/document/6309316/ | ||
|
||
More info can be found on http://wiki.paparazziuav.org/wiki/Mission_computer | ||
|
||
Copilot is intended mainly for mapping applications. | ||
|
||
This module processes messages from Copilot, and either forwards them to the GCS | ||
(such as CAMERA_SNAPSHOT or CAMERA_PAYLOAD messages), or responds to them as necessary | ||
(such as MOVE_WP). | ||
|
||
The module assumes the source of the messages is trusted (i.e. not authentication besides | ||
AC_ID check is performed). | ||
</description> | ||
</doc> | ||
|
||
|
||
<depends>extra_dl</depends> | ||
<header> | ||
<file name="copilot.h"/> | ||
</header> | ||
<init fun="copilot_init()"/> | ||
<periodic fun="copilot_periodic()" freq="1." autorun="TRUE"/> | ||
<datalink message="CAMERA_SNAPSHOT_DL" fun="copilot_parse_cam_snapshot_dl(buf)"/> | ||
<datalink message="CAMERA_PAYLOAD_DL" fun="copilot_parse_cam_payload_dl(buf)"/> | ||
<datalink message="COPILOT_STATUS_DL" fun="copilot_parse_copilot_status_dl(buf)"/> | ||
<datalink message="MOVE_WP" fun="copilot_parse_move_wp_dl(buf)"/> | ||
<makefile target="ap"> | ||
<file name="copilot.c"/> | ||
</makefile> | ||
</module> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.