mirror of https://github.com/ArduPilot/ardupilot
AP_RPM: remove unneeded initialisations
These should always be static
This commit is contained in:
parent
d3877bf2d0
commit
ec6e2b9da8
|
@ -90,14 +90,9 @@ const AP_Param::GroupInfo AP_RPM::var_info[] = {
|
||||||
AP_GROUPEND
|
AP_GROUPEND
|
||||||
};
|
};
|
||||||
|
|
||||||
AP_RPM::AP_RPM(void) :
|
AP_RPM::AP_RPM(void)
|
||||||
num_instances(0)
|
|
||||||
{
|
{
|
||||||
AP_Param::setup_object_defaults(this, var_info);
|
AP_Param::setup_object_defaults(this, var_info);
|
||||||
|
|
||||||
// init state and drivers
|
|
||||||
memset(state,0,sizeof(state));
|
|
||||||
memset(drivers,0,sizeof(drivers));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
private:
|
private:
|
||||||
int _fd = -1;
|
int _fd = -1;
|
||||||
int _logfd = -1;
|
int _logfd = -1;
|
||||||
uint64_t _last_timestamp = 0;
|
uint64_t _last_timestamp;
|
||||||
uint32_t _resolution_usec = 1;
|
uint32_t _resolution_usec = 1;
|
||||||
|
|
||||||
ModeFilterFloat_Size5 signal_quality_filter {3};
|
ModeFilterFloat_Size5 signal_quality_filter {3};
|
||||||
|
|
Loading…
Reference in New Issue