Rover: remove Rover sending of RC_CHANNELS_SCALED

This commit is contained in:
Peter Barker
2026-03-03 18:24:28 +11:00
committed by Peter Barker
parent ceba7628fa
commit c03e469cd8
2 changed files with 0 additions and 37 deletions
-35
View File
@@ -120,36 +120,6 @@ void GCS_MAVLINK_Rover::send_nav_controller_output() const
control_mode->crosstrack_error());
}
void GCS_MAVLINK_Rover::send_servo_out()
{
float motor1, motor3;
if (rover.g2.motors.have_skid_steering()) {
motor1 = 10000 * (SRV_Channels::get_output_scaled(SRV_Channel::k_throttleLeft) * 0.001f);
motor3 = 10000 * (SRV_Channels::get_output_scaled(SRV_Channel::k_throttleRight) * 0.001f);
} else {
motor1 = 10000 * (SRV_Channels::get_output_scaled(SRV_Channel::k_steering) / 4500.0f);
motor3 = 10000 * (SRV_Channels::get_output_scaled(SRV_Channel::k_throttle) * 0.01f);
}
mavlink_msg_rc_channels_scaled_send(
chan,
millis(),
0, // port 0
motor1,
0,
motor3,
0,
0,
0,
0,
0,
#if AP_RSSI_ENABLED
receiver_rssi()
#else
UINT8_MAX
#endif
);
}
int16_t GCS_MAVLINK_Rover::vfr_hud_throttle() const
{
return rover.g2.motors.get_throttle();
@@ -425,11 +395,6 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id)
{
switch (id) {
case MSG_SERVO_OUT:
CHECK_PAYLOAD_SIZE(RC_CHANNELS_SCALED);
send_servo_out();
break;
case MSG_WHEEL_DISTANCE:
CHECK_PAYLOAD_SIZE(WHEEL_DISTANCE);
rover.send_wheel_encoder_distance(chan);
-2
View File
@@ -50,8 +50,6 @@ private:
void handle_radio(const mavlink_message_t &msg);
void handle_landing_target(const mavlink_landing_target_t &msg, uint32_t timestamp_ms) override;
void send_servo_out();
// if we receive a message where the user has not masked out
// acceleration from the input packet we send a curt message
// informing them: