SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
qmi8658_madgwick_ahrs_deprecated.ino File Reference

@license MIT License More...

#include <Arduino.h>
#include <Wire.h>
#include <SPI.h>
#include "SensorQMI8658.hpp"
#include <MadgwickAHRS.h>
Include dependency graph for qmi8658_madgwick_ahrs_deprecated.ino:

Go to the source code of this file.

Macros

#define SPI_MOSI   (35)
 
#define SPI_SCK   (36)
 
#define SPI_MISO   (37)
 
#define IMU_CS   34
 
#define IMU_IRQ   33
 
#define OLED_SDA   22
 
#define OLED_SCL   21
 

Functions

void beginPower ()
 
void setup ()
 
void loop ()
 

Variables

SensorQMI8658 qmi
 
IMUdata acc
 
IMUdata gyr
 
Madgwick filter
 
uint32_t microsPerReading
 
uint32_t microsPrevious
 

Detailed Description

@license MIT License

Copyright (c) 2022 lewis he

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.

Author
Lewis He (lewis.nosp@m.he@o.nosp@m.utloo.nosp@m.k.co.nosp@m.m)
Date
2022-10-16

Definition in file qmi8658_madgwick_ahrs_deprecated.ino.

Macro Definition Documentation

◆ IMU_CS

#define IMU_CS   34

Definition at line 68 of file qmi8658_madgwick_ahrs_deprecated.ino.

◆ IMU_IRQ

#define IMU_IRQ   33

Definition at line 72 of file qmi8658_madgwick_ahrs_deprecated.ino.

◆ OLED_SCL

#define OLED_SCL   21

Definition at line 80 of file qmi8658_madgwick_ahrs_deprecated.ino.

◆ OLED_SDA

#define OLED_SDA   22

Definition at line 76 of file qmi8658_madgwick_ahrs_deprecated.ino.

◆ SPI_MISO

#define SPI_MISO   (37)

Definition at line 62 of file qmi8658_madgwick_ahrs_deprecated.ino.

◆ SPI_MOSI

#define SPI_MOSI   (35)

Definition at line 54 of file qmi8658_madgwick_ahrs_deprecated.ino.

◆ SPI_SCK

#define SPI_SCK   (36)

Definition at line 58 of file qmi8658_madgwick_ahrs_deprecated.ino.

Function Documentation

◆ beginPower()

void beginPower ( )

Definition at line 92 of file qmi8658_madgwick_ahrs_deprecated.ino.

Referenced by setup().

◆ loop()

◆ setup()

Variable Documentation

◆ acc

IMUdata acc

Definition at line 85 of file qmi8658_madgwick_ahrs_deprecated.ino.

Referenced by loop().

◆ filter

Madgwick filter

Definition at line 88 of file qmi8658_madgwick_ahrs_deprecated.ino.

Referenced by loop(), and setup().

◆ gyr

IMUdata gyr

Definition at line 86 of file qmi8658_madgwick_ahrs_deprecated.ino.

Referenced by loop().

◆ microsPerReading

uint32_t microsPerReading

Definition at line 89 of file qmi8658_madgwick_ahrs_deprecated.ino.

Referenced by loop(), and setup().

◆ microsPrevious

uint32_t microsPrevious

Definition at line 89 of file qmi8658_madgwick_ahrs_deprecated.ino.

Referenced by loop(), and setup().

◆ qmi

Definition at line 83 of file qmi8658_madgwick_ahrs_deprecated.ino.

Referenced by loop(), and setup().