peripherals
1.4.2
RoadNarrows Robotics Hardware Peripherals Package
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
imuSensor.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Package: RoadNarrows Robotics Peripherals
4
//
5
// Library: libimu
6
//
7
// File: imuSensor.h
8
//
9
/*! \file
10
*
11
* $LastChangedDate: 2015-02-25 14:46:44 -0700 (Wed, 25 Feb 2015) $
12
* $Rev: 3872 $
13
*
14
* \brief IMU sensor base class interface.
15
*
16
* \author Robin Knight (robin.knight@roadnarrows.com)
17
*
18
* \copyright
19
* \h_copy 2015-2017. RoadNarrows LLC.\n
20
* http://www.roadnarrows.com\n
21
* All Rights Reserved
22
*/
23
/*
24
* @EulaBegin@
25
* @EulaEnd@
26
*/
27
////////////////////////////////////////////////////////////////////////////////
28
29
#ifndef _IMU_SENOSR_H
30
#define _IMU_SENOSR_H
31
32
#include "
rnr/imu/imuConst.h
"
33
34
/*!
35
* \brief RoadNarrows Robotics standard namespace.
36
*/
37
namespace
rnr
38
{
39
/*!
40
* \ingroup periph_imu_sensor
41
* \brief IMU sensor class.
42
*/
43
class
IMUSensor
44
{
45
public
:
46
IMU
() { }
47
48
virtual
~
IMUSensor
() { }
49
50
virtual
void
getCaps() { }
51
52
virtual
int
readAccelerometer(
double
&ax,
double
&ay,
double
&az)
53
{
54
return
-
IMU_ECODE_NO_CAP
;
55
}
56
57
virtual
int
readGyroscope(
double
&gx,
double
&gy,
double
&gz);
58
{
59
return
-
IMU_ECODE_NO_CAP
;
60
}
61
62
virtual
int
readMagnetometer(
double
&mx,
double
&my,
double
&mz);
63
{
64
return
-
IMU_ECODE_NO_CAP
;
65
}
66
67
virtual
int
readBarometer(
double
&p);
68
{
69
return
-
IMU_ECODE_NO_CAP
;
70
}
71
72
virtual
int
readTemperature(
double
&temp);
73
{
74
return
-
IMU_ECODE_NO_CAP
;
75
}
76
77
protected
:
78
}
79
80
}
// namespace rnr
81
82
83
#endif // _IMU_SENOSR_H
rnr::IMU_ECODE_NO_CAP
static const int IMU_ECODE_NO_CAP
no capabilities
Definition:
imuConst.h:51
rnr::IMU
IMU class.
Definition:
imu.h:44
rnr::IMUSensor
IMU sensor class.
Definition:
imuSensor.h:43
imuConst.h
IMU constants.
rnr
RoadNarrows Robotics standard namespace.
Definition:
HID.h:65
include
rnr
imu
imuSensor.h
Generated on Fri Aug 10 2018 13:55:33 for peripherals by
1.8.11
©2018 RoadNarrows LLC
www.roadnarrows.com