-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Functions writeReg and getType from IMU
- Loading branch information
Showing
7 changed files
with
17 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
DESCRIPTION | ||
*******************************************************************************/ | ||
/** | ||
* @brief Abstract IMU interface | ||
* @brief Abstract IMU interface, depicts Zumo32U4IMU library | ||
* @author Juliane Kerpe <[email protected]> | ||
* | ||
* @addtogroup HALInterfaces | ||
|
@@ -52,16 +52,6 @@ | |
* Types and Classes | ||
*****************************************************************************/ | ||
|
||
|
||
/** | ||
* Own enum is necessary since it is only defined in the Zumo32U4-Library and will therefor only be found on HALTarget and not HALSim. | ||
*/ | ||
enum class Zumo32U4IMUTypeRU : uint8_t { | ||
Unknown, | ||
LSM303D_L3GD20H, | ||
LSM6DS33_LIS3MDL | ||
}; | ||
|
||
/** The abstract IMU interface. */ | ||
class IIMU | ||
{ | ||
|
@@ -79,13 +69,6 @@ class IIMU | |
* @return True if the sensor type was detected succesfully; false otherwise. | ||
*/ | ||
virtual bool init() = 0; | ||
|
||
/** | ||
* Returns the type of the inertial sensors on the Zumo 32U4. | ||
* | ||
* @return The sensor type as a member of the Zumo32U4IMUType enum. If the type is not known (e.g. if init() has not been called yet), this will be Zumo32U4IMUType::Unknown. | ||
*/ | ||
virtual Zumo32U4IMUTypeRU getType() = 0; | ||
|
||
/** | ||
* Enables all of the inertial sensors with a default configuration. | ||
|
@@ -96,15 +79,6 @@ class IIMU | |
* Configures the sensors with settings optimized for turn sensing. | ||
*/ | ||
virtual void configureForTurnSensing() = 0; | ||
|
||
/** | ||
* Writes an 8-bit sensor register. | ||
* | ||
* @param[in] addr Device address. | ||
* @param[in] reg Register address. | ||
* @param[in] value 8-bit register value to be written. | ||
*/ | ||
virtual void writeReg(uint8_t addr, uint8_t reg, uint8_t value) = 0; | ||
|
||
/** | ||
* Takes a reading from the accelerometer and makes the measurements available in a. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters