Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HMC1501 Class Reference
A class to work with a HMC1501 magnetic angular sensor. More...
#include <HMC1501.h>
Public Member Functions | |
| HMC1501 (float minV, float maxV) | |
| Creates an HMC1501 object. | |
| float | getAmplitude () |
| Amplitude in mV. | |
| float | getOffset () |
| Offset in mV. | |
| float | angle (float mV) |
| Angle in degree [°]. | |
Detailed Description
A class to work with a HMC1501 magnetic angular sensor.
Definition at line 26 of file HMC1501.h.
Constructor & Destructor Documentation
| HMC1501 | ( | float | minV, |
| float | maxV | ||
| ) |
Creates an HMC1501 object.
Creates a HMC1501 object.
- Parameters:
-
minV Minimum voltage measured in mV when rotating a magnet. maxV Maximum voltage measured in mV when rotating a magnet.
- Note:
- Minimum and maximum voltages shall be measured by rotating the magnet
- Parameters:
-
minV Minimum voltage [mV] maxV Maximum voltage [mV]
Definition at line 30 of file HMC1501.cpp.
Member Function Documentation
| float angle | ( | float | mV ) |
Angle in degree [°].
- Note:
- theta = arcsin(Volt) / 2 [rad]
- Parameters:
-
Input voltage in mV
- Return values:
-
Angle in degree [°]
- Note:
- theta = arcsin(Volt) / 2 [rad]
- Parameters:
-
Input voltage in mV [mV]
- Return values:
-
Angle in degree [°]
Definition at line 44 of file HMC1501.cpp.
| float getAmplitude | ( | ) |
Generated on Fri Jul 22 2022 07:54:24 by
1.7.2