Browse Source

AP_OpticalFlow: No need to clear already zerod objects

master
Michael du Breuil 6 years ago committed by WickedShell
parent
commit
3d7d23531a
  1. 5
      libraries/AP_OpticalFlow/OpticalFlow.cpp

5
libraries/AP_OpticalFlow/OpticalFlow.cpp

@ -74,11 +74,6 @@ OpticalFlow::OpticalFlow(AP_AHRS_NavEKF &ahrs) @@ -74,11 +74,6 @@ OpticalFlow::OpticalFlow(AP_AHRS_NavEKF &ahrs)
_last_update_ms(0)
{
AP_Param::setup_object_defaults(this, var_info);
memset(&_state, 0, sizeof(_state));
// healthy flag will be overwritten on update
_flags.healthy = false;
}
void OpticalFlow::init(void)

Loading…
Cancel
Save