ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
user_accelerometer_poses.cpp File Reference
#include <ESP.h>

Functions

vector< double > zeroGs (3)
 
vector< double > processAccelerometerData (vector< double > input)
 
CalibrateResult calibrate (const MatrixDouble &data)
 
CalibrateResult uprightDataCollected (const MatrixDouble &data)
 
CalibrateResult upsideDownDataCollected (const MatrixDouble &data)
 
void updateAlwaysPickSomething (bool new_val)
 
void updateVariability (double new_val)
 
void setup ()
 

Variables

ASCIISerialStream stream (115200, 3)
 
GestureRecognitionPipeline pipeline
 
Calibrator calibrator
 
TcpOStream oStream ("localhost", 5204)
 
MatrixDouble uprightData
 
MatrixDouble upsideDownData
 
bool haveUprightData = false
 
bool haveUpsideDownData = false
 
double range
 
double null_rej = 5.0
 
bool always_pick_something = false
 

Function Documentation

CalibrateResult calibrate ( const MatrixDouble &  data)
vector<double> processAccelerometerData ( vector< double >  input)
void setup ( )
void updateAlwaysPickSomething ( bool  new_val)
void updateVariability ( double  new_val)
CalibrateResult uprightDataCollected ( const MatrixDouble &  data)
CalibrateResult upsideDownDataCollected ( const MatrixDouble &  data)
vector<double> zeroGs ( )

Variable Documentation

bool always_pick_something = false
bool haveUprightData = false
bool haveUpsideDownData = false
double null_rej = 5.0
TcpOStream oStream("localhost", 5204)
GestureRecognitionPipeline pipeline
double range
ASCIISerialStream stream(115200, 3)
MatrixDouble uprightData
MatrixDouble upsideDownData