Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
copilot_fixedwing.c File Reference

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. More...

+ Include dependency graph for copilot_fixedwing.c:

Go to the source code of this file.

Functions

void copilot_parse_move_wp_dl (uint8_t *buf)
 If MOVE_WP from GCS. More...
 

Detailed 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).

Definition in file copilot_fixedwing.c.

Function Documentation

void copilot_parse_move_wp_dl ( uint8_t buf)

If MOVE_WP from GCS.

  • processed in firmware_parse_msg(dev, trans, buf); with regular buffer
  • reponse over telemetry (regular buffer)
  • here send WP_MOVED over extra_dl

If MOVE_WP from extra_dl

  • processed in firmware_parse_msg(dev, trans, buf); with extra buffer
  • response over extra_dl
  • send an update to GCS

In both cases, the MOVE_WP message was already processed in firmware_parse here we are taking care only about propagating the change

Definition at line 67 of file copilot_fixedwing.c.

References LlaCoor_f::alt, UtmCoor_f::alt, DefaultChannel, DefaultDevice, dl_buffer, UtmCoor_f::east, extra_dl_buffer, extra_pprz_tp, LlaCoor_f::lat, LlaCoor_f::lon, nav_utm_east0, nav_utm_north0, nav_utm_zone0, nb_waypoint, UtmCoor_f::north, utm_of_lla_f(), waypoints, point::x, point::y, and UtmCoor_f::zone.

+ Here is the call graph for this function: