Skip to content

Instantly share code, notes, and snippets.

View shoebahmedadeel's full-sized avatar

Shoeb shoebahmedadeel

View GitHub Profile
@shoebahmedadeel
shoebahmedadeel / gist:942e230086bafa83da7cc59624ee8657
Created June 5, 2017 20:37
Mpu 9250 complimentary filter to get roll pitch and stabilization
#include <Wire.h>
#include <Servo.h>
#define SerialPort Serial
#include <SparkFunMPU9250-DMP.h>
MPU9250_DMP imu;
double roll , pitch, yaw;
float phi = 0;
float theta = 0;
float psi = 0;
long int pre_ts=0;
@shoebahmedadeel
shoebahmedadeel / .ino
Created May 22, 2017 09:06
Mpu 9250 stabilization code arduino
#include <Wire.h>
#include <Servo.h>
#include<Filters.h>
//#include <SoftwareSerial.h>
#define SerialPort Serial
#include <SparkFunMPU9250-DMP.h>
MPU9250_DMP imu;
double roll , pitch, yaw;
float phi = 0;
float theta = 0;
@shoebahmedadeel
shoebahmedadeel / .ino
Created May 6, 2017 18:25
MPU 9250 - roll, pitch, yaw from Accelerometer,Gyroscope and Magnetometer
#include <Wire.h>
#include <Servo.h>
#define SerialPort Serial
#include <SparkFunMPU9250-DMP.h>
MPU9250_DMP imu;
double roll , pitch, yaw;
long int pre_ts=0;
void setup()
{