InputGesture inherits from Input.
More...
#include <InputGesture.h>
InputGesture inherits from Input.
Arduino
TinyTrainable
Input
for input sensor
for machine learning
◆ InputGesture()
| InputGesture::InputGesture |
( |
| ) |
|
◆ gesturePrintHeader()
| void InputGesture::gesturePrintHeader |
( |
| ) |
|
|
overridevirtual |
Reimplemented from Input.
◆ gestureReadData()
| void InputGesture::gestureReadData |
( |
| ) |
|
|
overridevirtual |
Reimplemented from Input.
◆ gestureSetAcceleration()
| void InputGesture::gestureSetAcceleration |
( |
float |
newVal | ) |
|
|
overridevirtual |
Reimplemented from Input.
◆ gestureSetNumberSamples()
| void InputGesture::gestureSetNumberSamples |
( |
int |
newVal | ) |
|
|
overridevirtual |
Reimplemented from Input.
◆ identify()
| void InputGesture::identify |
( |
| ) |
|
|
overridevirtual |
Reimplemented from Input.
◆ setupGestureModel()
| void InputGesture::setupGestureModel |
( |
String |
gestures[3], |
|
|
const unsigned char * |
model = nullptr |
|
) |
| |
|
overridevirtual |
Reimplemented from Input.
◆ setupGestureSensor()
| void InputGesture::setupGestureSensor |
( |
| ) |
|
|
private |
function for setup of sensor LSM9DS1
◆ setupInstrument()
| void InputGesture::setupInstrument |
( |
bool |
serialDebugging | ) |
|
|
overridevirtual |
Reimplemented from Input.
◆ _accelerationThreshold
| float InputGesture::_accelerationThreshold = 2.5 |
|
private |
threshold of significance measured in G's
◆ _aX
◆ _aY
◆ _aZ
◆ _floatDecimals
| const int InputGesture::_floatDecimals = 3 |
|
private |
number of decimals for floating point numbers
◆ _gestureHeader
| const String InputGesture::_gestureHeader = "aX,aY,aZ,gX,gY,gZ" |
|
private |
header for gesture database
◆ _gestures
| String InputGesture::_gestures[3] |
|
private |
◆ _gX
◆ _gY
◆ _gZ
◆ _numSamples
| int InputGesture::_numSamples = 119 |
|
private |
number of samples per motion
◆ _samplesRead
◆ aX
◆ aY
◆ aZ
◆ gX
◆ gY
◆ gZ
◆ NUM_GESTURES
| const int InputGesture::NUM_GESTURES = 3 |
|
private |
◆ tensorArena
◆ tensorArenaSize
| constexpr int InputGesture::tensorArenaSize = 8 * 1024 |
|
staticconstexprprivate |
◆ tflErrorReporter
| tflite::MicroErrorReporter InputGesture::tflErrorReporter |
|
private |
◆ tflInputTensor
| TfLiteTensor* InputGesture::tflInputTensor = nullptr |
|
private |
◆ tflInterpreter
| tflite::MicroInterpreter* InputGesture::tflInterpreter = nullptr |
|
private |
◆ tflModel
| const tflite::Model* InputGesture::tflModel = nullptr |
|
private |
◆ tflOpsResolver
| tflite::AllOpsResolver InputGesture::tflOpsResolver |
|
private |
◆ tflOutputTensor
| TfLiteTensor* InputGesture::tflOutputTensor = nullptr |
|
private |
The documentation for this class was generated from the following files: