mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpilibc] ADIS IMUs: Fix memory leak (#4170)
This commit is contained in:
@@ -285,6 +285,10 @@ class ADIS16448_IMU : public nt::NTSendable,
|
||||
double gyro_rate_z = 0.0;
|
||||
};
|
||||
|
||||
/** @brief Internal Resources **/
|
||||
DigitalInput* m_reset_in;
|
||||
DigitalOutput* m_status_led;
|
||||
|
||||
bool SwitchToStandardSPI();
|
||||
|
||||
bool SwitchToAutoSPI();
|
||||
|
||||
@@ -296,6 +296,10 @@ class ADIS16470_IMU : public nt::NTSendable,
|
||||
static constexpr double deg_to_rad = 0.0174532;
|
||||
static constexpr double grav = 9.81;
|
||||
|
||||
/** @brief Resources **/
|
||||
DigitalInput* m_reset_in;
|
||||
DigitalOutput* m_status_led;
|
||||
|
||||
/**
|
||||
* @brief Switches to standard SPI operation. Primarily used when exiting auto
|
||||
* SPI mode.
|
||||
|
||||
Reference in New Issue
Block a user