Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Handling of messages coming from ground and other A/Cs. More...
#include "std.h"
#include "dl_protocol.h"
Go to the source code of this file.
Macros | |
#define | EXTERN extern |
#define | Swap32IfBigEndian(_) {} |
#define | PPRZ 1 |
Datalink kinds. More... | |
#define | XBEE 2 |
#define | SUPERBITRF 3 |
#define | W5100 4 |
#define | BLUEGIGA 5 |
#define | MSG_SIZE 128 |
#define | DatalinkEvent() |
Functions | |
EXTERN void | dl_parse_msg (void) |
Should be called when chars are available in dl_buffer. More... | |
static void | DlCheckAndParse (void) |
Check for new message and parse. More... | |
Variables | |
EXTERN bool_t | dl_msg_available |
Flag provided to control calls to dl_parse_msg. More... | |
EXTERN uint16_t | datalink_time |
time in seconds since last datalink message was received More... | |
EXTERN uint16_t | datalink_nb_msgs |
number of datalink/uplink messages received More... | |
EXTERN uint8_t | dl_buffer [MSG_SIZE] |
Handling of messages coming from ground and other A/Cs.
Definition in file datalink.h.
#define BLUEGIGA 5 |
Definition at line 50 of file datalink.h.
Referenced by downlink_init().
#define DatalinkEvent | ( | ) |
Definition at line 91 of file datalink.h.
Referenced by event_task_ap(), main_event(), and main_event_task().
#define EXTERN extern |
Definition at line 33 of file datalink.h.
#define MSG_SIZE 128 |
Definition at line 61 of file datalink.h.
#define PPRZ 1 |
#define SUPERBITRF 3 |
Definition at line 48 of file datalink.h.
Referenced by downlink_init().
#define Swap32IfBigEndian | ( | _ | ) | {} |
Definition at line 39 of file datalink.h.
#define W5100 4 |
Definition at line 49 of file datalink.h.
Referenced by downlink_init().
#define XBEE 2 |
Definition at line 47 of file datalink.h.
EXTERN void dl_parse_msg | ( | void | ) |
Should be called when chars are available in dl_buffer.
NAV
WIND_INFO
Else there is no dl_settings section in the flight plan
Definition at line 145 of file demo_ahrs_actuators.c.
References ac_id, LlaCoor_i::alt, autopilot_guided_goto_body_relative(), autopilot_guided_goto_ned(), autopilot_guided_goto_ned_relative(), DefaultChannel, DefaultDevice, dl_buffer, UtmCoor_f::east, gps_inject_data(), gps_nb_ovrn, LtpDef_i::hmsl, IdOfMsg, infrared, LlaCoor_f::lat, LlaCoor_i::lat, LED_TOGGLE, LtpDef_i::lla, LlaCoor_f::lon, LlaCoor_i::lon, MOfCm, MOfMM, nav_goto_block(), nav_move_waypoint(), nav_utm_east0, nav_utm_north0, nav_utm_zone0, State::ned_origin_i, UtmCoor_f::north, parse_gps_datalink(), parse_rc_3ch_datalink(), parse_rc_4ch_datalink(), Infrared::pitch, tcas_ac_status::resolve, Infrared::roll, SenderIdOfMsg, SetAcInfo, state, stateGetAirspeed_f(), stateIsLocalCoordinateValid(), stateSetAirspeed_f(), stateSetHorizontalWindspeed_f(), tcas_acs_status, the_acs_id, Infrared::top, TRUE, utm_of_lla_f(), val, waypoint_move_lla(), waypoints, point::x, FloatVect2::x, point::y, FloatVect2::y, and UtmCoor_f::zone.
Referenced by DlCheckAndParse().
|
inlinestatic |
Check for new message and parse.
Definition at line 72 of file datalink.h.
References datalink_nb_msgs, datalink_time, dl_msg_available, dl_parse_msg(), and FALSE.
Referenced by set_datalink_message().
number of datalink/uplink messages received
Definition at line 59 of file datalink.h.
Referenced by DlCheckAndParse().
time in seconds since last datalink message was received
Definition at line 56 of file datalink.h.
Referenced by DlCheckAndParse().
Definition at line 62 of file datalink.h.
EXTERN bool_t dl_msg_available |
Flag provided to control calls to dl_parse_msg.
NOT used in this module
Definition at line 53 of file datalink.h.
Referenced by DlCheckAndParse().