mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
GCS_MAVLink: move handling of AP_Radio RC input down into AP_RCProtocol
This commit is contained in:
parent
f9c5c02f91
commit
549411133b
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if HAL_RCINPUT_WITH_AP_RADIO
|
#if AP_RADIO_ENABLED
|
||||||
#include <AP_Radio/AP_Radio.h>
|
#include <AP_Radio/AP_Radio.h>
|
||||||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||||
#endif
|
#endif
|
||||||
@ -3626,7 +3626,7 @@ void GCS_MAVLINK::handle_set_gps_global_origin(const mavlink_message_t &msg)
|
|||||||
*/
|
*/
|
||||||
void GCS_MAVLINK::handle_data_packet(const mavlink_message_t &msg)
|
void GCS_MAVLINK::handle_data_packet(const mavlink_message_t &msg)
|
||||||
{
|
{
|
||||||
#if HAL_RCINPUT_WITH_AP_RADIO
|
#if AP_RADIO_ENABLED
|
||||||
mavlink_data96_t m;
|
mavlink_data96_t m;
|
||||||
mavlink_msg_data96_decode(&msg, &m);
|
mavlink_msg_data96_decode(&msg, &m);
|
||||||
switch (m.type) {
|
switch (m.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user