Méthode | Description | |
---|---|---|
Disable ( ) : void |
Disables the gyro.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L was occupying. |
|
Enable ( ) : void |
Enables the gyro.
|
|
HMC5883L ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class. This is the default constructor.
|
|
HMC5883L ( II2CBus device ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class with the I2C device that represents the physical connection to the gyro.
|
|
HMC5883L ( II2CBus device, |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class with the I2C device that represents the physical connection to the gyro and the bus address of the device.
|
|
Init ( IGyroscope triggeringAxis, GyroTriggerMode mode ) : IGyroscope |
Initializes the Gyro.
|
|
ReadGyro ( ) : void |
Reads the gyro and stores the value internally.
|
|
RecalibrateOffset ( ) : void |
Recalibrates the offset.
|
public HMC5883L ( II2CBus device ) : System | ||
device | II2CBus |
/// The I2C device that represents the physical connection to the gyro.
/// If null, then it is assumed that the host is a revision 2 or higher
/// board and a default |
Résultat | System |
public HMC5883L ( II2CBus device, |
||
device | II2CBus |
/// The I2C device that represents the physical connection to the gyro.
/// If null, then it is assumed that the host is a revision 2 or higher
/// board and a default |
address | /// The bus address of the device. /// | |
Résultat | System |
public Init ( IGyroscope triggeringAxis, GyroTriggerMode mode ) : IGyroscope | ||
triggeringAxis | IGyroscope | /// The gyro that represents the single axis responsible for /// the triggering of updates. /// |
mode | GyroTriggerMode | /// The gyro update trigger mode. /// |
Résultat | IGyroscope |