Skip to content

Commit

Permalink
AP_HAL: add and use AP_RCProtocol_UDP_Packed16BitValues
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Mar 14, 2024
1 parent 14b1237 commit 7796bc5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions libraries/AP_HAL/SIMState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions libraries/AP_HAL/SIMState.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ class AP_HAL::SIMState {
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;
Expand Down

0 comments on commit 7796bc5

Please sign in to comment.