mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +03:00
lsm303: add quick accel data functions
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
parent
d0999cf778
commit
e7a32b9882
@ -109,6 +109,24 @@ LSM303::getRawCoorData()
|
|||||||
return &coor[0];
|
return &coor[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t
|
||||||
|
LSM303::getAccelY()
|
||||||
|
{
|
||||||
|
return accel[2];
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t
|
||||||
|
LSM303::getAccelZ()
|
||||||
|
{
|
||||||
|
return accel[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t
|
||||||
|
LSM303::getAccelX()
|
||||||
|
{
|
||||||
|
return accel[1];
|
||||||
|
}
|
||||||
|
|
||||||
mraa_result_t
|
mraa_result_t
|
||||||
LSM303::getCoordinates()
|
LSM303::getCoordinates()
|
||||||
{
|
{
|
||||||
|
@ -110,6 +110,12 @@ class LSM303 {
|
|||||||
*/
|
*/
|
||||||
uint8_t* getRawCoorData();
|
uint8_t* getRawCoorData();
|
||||||
|
|
||||||
|
uint8_t getAccelY();
|
||||||
|
|
||||||
|
uint8_t getAccelZ();
|
||||||
|
|
||||||
|
uint8_t getAccelX();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the raw accelerometer data, this will get updated when getAcceleration() is called
|
* Get the raw accelerometer data, this will get updated when getAcceleration() is called
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user