Skip to content

Commit

Permalink
AP_HAL_SITL: initialize rcout safety state
Browse files Browse the repository at this point in the history
This allows BRD_SAFETY_DEFLT=1 to work correctly for SITL.
  • Loading branch information
robertlong13 authored and peterbarker committed Jul 29, 2024
1 parent f2ec97e commit 64fc60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_SITL/RCOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class HALSITL::RCOutput : public AP_HAL::RCOutput {
bool _corked;
uint16_t _pending[SITL_NUM_CHANNELS];

AP_HAL::Util::safety_state safety_state;
AP_HAL::Util::safety_state safety_state = AP_HAL::Util::safety_state::SAFETY_DISARMED;
};

#endif

0 comments on commit 64fc60c

Please sign in to comment.