Browse Source

Revert "GCS_MAVLink: send radio_in using rcmap"

This reverts commit 0881ccbee0.
master
Randy Mackay 11 years ago
parent
commit
de747d215a
  1. 3
      libraries/GCS_MAVLink/GCS.h
  2. 10
      libraries/GCS_MAVLink/GCS_Common.cpp

3
libraries/GCS_MAVLink/GCS.h

@ -13,7 +13,6 @@
#include <DataFlash.h> #include <DataFlash.h>
#include <AP_Mission.h> #include <AP_Mission.h>
#include "../AP_BattMonitor/AP_BattMonitor.h" #include "../AP_BattMonitor/AP_BattMonitor.h"
#include <AP_RCMapper.h>
#include <stdint.h> #include <stdint.h>
// GCS Message ID's // GCS Message ID's
@ -193,7 +192,7 @@ public:
void send_ahrs2(AP_AHRS &ahrs); void send_ahrs2(AP_AHRS &ahrs);
bool send_gps_raw(AP_GPS &gps); bool send_gps_raw(AP_GPS &gps);
void send_system_time(AP_GPS &gps); void send_system_time(AP_GPS &gps);
void send_radio_in(const RCMapper &rcmap, uint8_t receiver_rssi); void send_radio_in(uint8_t receiver_rssi);
void send_raw_imu(const AP_InertialSensor &ins, const Compass &compass); void send_raw_imu(const AP_InertialSensor &ins, const Compass &compass);
void send_scaled_pressure(AP_Baro &barometer); void send_scaled_pressure(AP_Baro &barometer);
void send_sensor_offsets(const AP_InertialSensor &ins, const Compass &compass, AP_Baro &barometer); void send_sensor_offsets(const AP_InertialSensor &ins, const Compass &compass, AP_Baro &barometer);

10
libraries/GCS_MAVLink/GCS_Common.cpp

@ -981,7 +981,7 @@ void GCS_MAVLINK::send_system_time(AP_GPS &gps)
/* /*
send RC_CHANNELS_RAW, and RC_CHANNELS messages send RC_CHANNELS_RAW, and RC_CHANNELS messages
*/ */
void GCS_MAVLINK::send_radio_in(const RCMapper &rcmap, uint8_t receiver_rssi) void GCS_MAVLINK::send_radio_in(uint8_t receiver_rssi)
{ {
uint32_t now = hal.scheduler->millis(); uint32_t now = hal.scheduler->millis();
@ -993,10 +993,10 @@ void GCS_MAVLINK::send_radio_in(const RCMapper &rcmap, uint8_t receiver_rssi)
chan, chan,
now, now,
0, // port 0, // port
values[rcmap.roll()-1], values[0],
values[rcmap.pitch()-1], values[1],
values[rcmap.throttle()-1], values[2],
values[rcmap.yaw()-1], values[3],
values[4], values[4],
values[5], values[5],
values[6], values[6],

Loading…
Cancel
Save