AP_HAL: add and use AP_RCProtocol_UDP

This commit is contained in:
Peter Barker 2024-03-14 16:47:23 +11:00 committed by Peter Barker
parent 1eb2a3009d
commit 4a996c81fb
2 changed files with 0 additions and 9 deletions

View File

@ -125,12 +125,6 @@ void SIMState::fdm_input_local(void)
}
if (_sitl) {
sitl_model->fill_fdm(_sitl->state);
if (_sitl->rc_fail == SITL::SIM::SITL_RCFail_None) {
for (uint8_t i=0; i< _sitl->state.rcin_chan_count; i++) {
pwm_input[i] = 1000 + _sitl->state.rcin[i]*1000;
}
}
}
// output JSON state to ride along flight controllers

View File

@ -93,9 +93,6 @@ private:
pid_t _parent_pid;
uint32_t _update_count;
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
SocketAPM_native _sitl_rc_in{true};
#endif
SITL::SIM *_sitl;
uint16_t _rcin_port;
uint16_t _fg_view_port;