mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_HAL: add and use AP_RCProtocol_UDP
This commit is contained in:
parent
1eb2a3009d
commit
4a996c81fb
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user