Loading files
7a52e0ae4This file is pinned to the selected release. Download the original to open it in your design tool.
#pragma once
#include "Model.h"
#include "BaseSensor.h"
#include "Device/GyroDevice.h"
namespace Espfc::Sensor {
class AccelSensor: public BaseSensor
{
public:
AccelSensor(Model& model);
int begin();
int update();
int read();
int filter();
private:
void calibrate();
Model& _model;
Device::GyroDevice * _gyro;
Utils::Filter _filter[AXIS_COUNT_RPY];
};
}