mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
sx1276 and adxrs610: C++11 incompatibility fixes
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
fad4f72357
commit
ec75790516
@ -27,6 +27,15 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <mraa/aio.hpp>
|
#include <mraa/aio.hpp>
|
||||||
|
|
||||||
|
// volts per degree / second (typ)
|
||||||
|
#define m_degreeCoeff 0.006
|
||||||
|
|
||||||
|
// volts per degree C (typ)
|
||||||
|
#define m_temperatureCoeff 0.009
|
||||||
|
|
||||||
|
// nominal temperature at m_centerVolts
|
||||||
|
#define m_temperatureNom 25.0
|
||||||
|
|
||||||
namespace upm {
|
namespace upm {
|
||||||
/**
|
/**
|
||||||
* @brief DFRobot ADXRS610 Gyro Beakout board
|
* @brief DFRobot ADXRS610 Gyro Beakout board
|
||||||
@ -159,14 +168,6 @@ namespace upm {
|
|||||||
|
|
||||||
// aref / 2
|
// aref / 2
|
||||||
float m_centerVolts;
|
float m_centerVolts;
|
||||||
|
|
||||||
// volts per degree / second (typ)
|
|
||||||
static const float m_degreeCoeff = 0.006;
|
|
||||||
|
|
||||||
// volts per degree C (typ)
|
|
||||||
static const float m_temperatureCoeff = 0.009;
|
|
||||||
// nominal temperature at m_centerVolts
|
|
||||||
static const float m_temperatureNom = 25.0;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,13 @@
|
|||||||
#include <mraa/spi.hpp>
|
#include <mraa/spi.hpp>
|
||||||
#include <mraa/gpio.hpp>
|
#include <mraa/gpio.hpp>
|
||||||
|
|
||||||
|
// Our crystal oscillator frequency (32Mhz)
|
||||||
|
#define FXOSC_FREQ 32000000.0
|
||||||
|
|
||||||
|
// Our freq stepping resolution (in Hz) if FXOSC_FREQ is 32Mhz
|
||||||
|
// (FXOSC_FREQ / 2^19) =
|
||||||
|
#define FXOSC_STEP 61.03515625
|
||||||
|
|
||||||
namespace upm {
|
namespace upm {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -86,12 +93,6 @@ namespace upm {
|
|||||||
// The default chip revision
|
// The default chip revision
|
||||||
static const uint8_t chipRevision = 0x12;
|
static const uint8_t chipRevision = 0x12;
|
||||||
|
|
||||||
// Our crystal oscillator frequency (32Mhz)
|
|
||||||
static const double FXOSC_FREQ = 32000000.0;
|
|
||||||
|
|
||||||
// Our freq stepping resolution (in Hz) if FXOSC_FREQ is 32Mhz
|
|
||||||
// (FXOSC_FREQ / 2^19) =
|
|
||||||
static const double FXOSC_STEP = 61.03515625;
|
|
||||||
|
|
||||||
// total FIFO size
|
// total FIFO size
|
||||||
static const int FIFO_SIZE = 256;
|
static const int FIFO_SIZE = 256;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user