|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Radio control input via datalink. More...
#include "std.h"Go to the source code of this file.
Macros | |
| #define | RC_DL_NB_CHANNEL 11 |
| #define | RADIO_ROLL 0 |
| Redefining RADIO_* Do not use with radio.h (ppm rc). | |
| #define | RADIO_PITCH 1 |
| #define | RADIO_YAW 2 |
| #define | RADIO_THROTTLE 3 |
| #define | RADIO_MODE 4 |
| #define | RADIO_AUX1 5 |
| #define | RADIO_AUX2 7 |
| #define | RADIO_AUX4 8 |
| #define | RADIO_AUX5 9 |
| #define | RADIO_AUX6 10 |
| #define | RADIO_AUX7 6 |
| #define | RADIO_KILL_SWITCH RADIO_AUX1 |
| #define | AP_MODE_SWITCH RADIO_AUX7 |
Functions | |
| void | parse_rc_up_datalink (int8_t n, int8_t *channels) |
| Decode datalink message to get rc values with RC_UP message. | |
| void | rc_datalink_parse_RC_UP (uint8_t *buf) |
| void | rc_datalink_init (void) |
| RC init function. | |
| void | rc_datalink_event (void) |
| RC event function. | |
Variables | |
| int8_t | rc_dl_values [RC_DL_NB_CHANNEL] |
| volatile bool | rc_dl_frame_available |
Radio control input via datalink.
Definition in file rc_datalink.h.
| #define AP_MODE_SWITCH RADIO_AUX7 |
Definition at line 55 of file rc_datalink.h.
| #define RADIO_AUX1 5 |
Definition at line 43 of file rc_datalink.h.
Referenced by periodic_auto1_commands(), and rc_cb().
| #define RADIO_AUX2 7 |
Definition at line 44 of file rc_datalink.h.
Referenced by periodic_auto1_commands(), rc_cb(), and schdule_control_effectiveness().
| #define RADIO_AUX4 8 |
Definition at line 45 of file rc_datalink.h.
Referenced by oneloop_andi_run(), periodic_auto1_commands(), and SpinQuad_overwrite().
| #define RADIO_AUX5 9 |
Definition at line 46 of file rc_datalink.h.
Referenced by oneloop_andi_run(), and periodic_auto1_commands().
| #define RADIO_AUX6 10 |
Definition at line 47 of file rc_datalink.h.
Referenced by periodic_auto1_commands().
| #define RADIO_AUX7 6 |
Definition at line 48 of file rc_datalink.h.
Referenced by periodic_auto1_commands().
| #define RADIO_KILL_SWITCH RADIO_AUX1 |
Definition at line 51 of file rc_datalink.h.
Referenced by autopilot_failsafe_checks(), rc_cb(), rc_cb(), and send_rotorcraft_rc().
| #define RADIO_MODE 4 |
Definition at line 42 of file rc_datalink.h.
Referenced by ap_mode_of_3way_switch(), pprz_mode_update(), radio_control_feed(), rc_cb(), rc_cb(), and send_rotorcraft_rc().
| #define RADIO_PITCH 1 |
Definition at line 39 of file rc_datalink.h.
Referenced by autopilot_static_on_rc_frame(), control_mixing_heewing_attitude_plane(), control_mixing_heewing_manual(), get_rc_pitch(), get_rc_pitch_f(), guidance_indi_set_wls_settings(), guidance_module_run(), guidance_set_rc_h_thrust(), oneloop_andi_RM(), oneloop_nB_RM(), radio_control_feed(), rc_cb(), read_rc_setpoint_speed_i(), send_rotorcraft_rc(), send_tune_hover(), and stabilization_direct_read_rc().
| #define RADIO_ROLL 0 |
Redefining RADIO_* Do not use with radio.h (ppm rc).
Definition at line 38 of file rc_datalink.h.
Referenced by autopilot_static_on_rc_frame(), control_mixing_heewing_attitude_plane(), control_mixing_heewing_manual(), get_rc_roll(), get_rc_roll_f(), guidance_indi_set_wls_settings(), guidance_module_run(), guidance_set_rc_h_thrust(), oneloop_andi_RM(), oneloop_nB_RM(), radio_control_feed(), rc_cb(), read_rc_setpoint_speed_i(), send_rotorcraft_rc(), send_tune_hover(), and stabilization_direct_read_rc().
| #define RADIO_THROTTLE 3 |
Definition at line 41 of file rc_datalink.h.
Referenced by autopilot_failsafe_checks(), autopilot_static_on_rc_frame(), control_mixing_heewing_attitude_plane(), control_mixing_heewing_manual(), guidance_module_run(), oneloop_andi_RM(), oneloop_andi_run(), oneloop_nB_RM(), oneloop_nB_run(), radio_control_feed(), rc_cb(), rc_cb(), rc_datalink_normalize(), send_oneloop_debug(), send_rotorcraft_rc(), spektrum_parse_channel(), and superbitrf_rc_normalize().
| #define RADIO_YAW 2 |
Definition at line 40 of file rc_datalink.h.
Referenced by autopilot_generated_on_rc_frame(), autopilot_static_on_rc_frame(), get_rc_yaw(), get_rc_yaw_f(), guidance_module_run(), oneloop_andi_RM(), oneloop_nB_RM(), radio_control_feed(), rc_cb(), read_rc_setpoint_heading(), send_rotorcraft_rc(), send_tune_hover(), and stabilization_direct_read_rc().
| #define RC_DL_NB_CHANNEL 11 |
Definition at line 32 of file rc_datalink.h.
Referenced by rc_datalink_init(), and rc_datalink_normalize().
Decode datalink message to get rc values with RC_UP message.
Definition at line 51 of file rc_datalink.c.
References rc_dl_frame_available, and rc_dl_values.
Referenced by mavlink_common_message_handler(), and rc_datalink_parse_RC_UP().
|
extern |
RC event function.
Definition at line 76 of file rc_datalink.c.
References radio_control, RADIO_CONTROL_DATALINK_ID, rc_datalink_normalize(), rc_dl_frame_available, rc_dl_values, and RC_OK.
|
extern |
RC init function.
Definition at line 36 of file rc_datalink.c.
References radio_control, rc_dl_frame_available, and RC_DL_NB_CHANNEL.
|
extern |
Definition at line 42 of file rc_datalink.c.
References LED_TOGGLE, and parse_rc_up_datalink().
|
extern |
Definition at line 33 of file rc_datalink.c.
Referenced by parse_rc_up_datalink(), rc_datalink_event(), and rc_datalink_init().
|
extern |
Definition at line 32 of file rc_datalink.c.
Referenced by parse_rc_up_datalink(), and rc_datalink_event().