Rover: move sending of simstate up

This commit is contained in:
Peter Barker 2018-01-31 13:29:23 +11:00 committed by Peter Barker
parent ef77bea4eb
commit 8101f2b573
2 changed files with 0 additions and 14 deletions

View File

@ -152,14 +152,6 @@ void Rover::send_vfr_hud(mavlink_channel_t chan)
0);
}
// report simulator state
void Rover::send_simstate(mavlink_channel_t chan)
{
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
sitl.simstate_send(chan);
#endif
}
void Rover::send_rangefinder(mavlink_channel_t chan)
{
float distance_cm;
@ -297,11 +289,6 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id)
rover.send_vfr_hud(chan);
break;
case MSG_SIMSTATE:
CHECK_PAYLOAD_SIZE(SIMSTATE);
rover.send_simstate(chan);
break;
case MSG_RANGEFINDER:
CHECK_PAYLOAD_SIZE(RANGEFINDER);
rover.send_rangefinder(chan);

View File

@ -466,7 +466,6 @@ private:
void send_nav_controller_output(mavlink_channel_t chan);
void send_servo_out(mavlink_channel_t chan);
void send_vfr_hud(mavlink_channel_t chan);
void send_simstate(mavlink_channel_t chan);
void send_rangefinder(mavlink_channel_t chan);
void send_pid_tuning(mavlink_channel_t chan);
void send_wheel_encoder(mavlink_channel_t chan);