GithubHelp home page GithubHelp logo

gesturexr's Introduction

A interactive controller hand gesture tracker implement Deep Learning for extracting command

go to the library, add this line of code to the getSensorData function:

/// @brief Gets data from the sensor. Must be called to update the data struct /// @return Error code (0 is success, negative is failure, positive is warning) int8_t BMI270::getSensorData() { // Variable to track errors returned by API calls int8_t err = BMI2_OK;

// Get raw data from sensor
bmi2_sens_data rawData;
err = bmi2_get_sensor_data(&rawData, &sensor);
if(err != BMI2_OK) return err;

data.accelX = rawData.acc.x;
data.accelY = rawData.acc.y;
data.accelZ = rawData.acc.z;

data.gyroX = rawData.gyr.x;
data.gyroY = rawData.gyr.y;
data.gyroZ = rawData.gyr.z;

// Convert raw data to g's and deg/sec
// convertRawData(&rawData, &data);

return BMI2_OK;

}

After that, go to the header file of the library and change the variable type of to int16_t

struct BMI270_SensorData { // Acceleration in g's int16_t accelX; int16_t accelY; int16_t accelZ;

// Rotation in deg/sec
int16_t gyroX;
int16_t gyroY;
int16_t gyroZ;

// Auxiliary sensor data, raw bytes
uint8_t auxData[BMI2_AUX_NUM_BYTES];

// Time of this data in milliseconds, measured by sensor
uint32_t sensorTimeMillis;

};

gesturexr's People

Contributors

snakierdread avatar phickies avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.