Hello,
I am at the very first stage. I am just taking raw values from the accelerometer of GY-85IMU, it uses ADXL345.
But the problem is that it is giving me same value on Z-axis in every orientation.
This is the code:
#include
#include
#include
#include
#include
#include
#include
#include
//#define DEBUG
#include "DebugUtils.h"
#include "CommunicationUtils.h"
#include "FreeIMU.h"
#include
#include
int raw_values[9];
float conv_values[9];
float ypr[3]; // yaw pitch roll
char str[256];
float val[9];
float values[9];
FreeIMU my3IMU = FreeIMU();
//The command from the PC
char cmd;
void setup() {
Serial.begin(115200);
Wire.begin();
my3IMU.init(true);
// LED
pinMode(13, OUTPUT);
}
void loop() {
for(uint16_t i=0; i
I am at the very first stage. I am just taking raw values from the accelerometer of GY-85IMU, it uses ADXL345.
But the problem is that it is giving me same value on Z-axis in every orientation.
This is the code:
#include
#include
#include
#include
#include
#include
#include
#include
//#define DEBUG
#include "DebugUtils.h"
#include "CommunicationUtils.h"
#include "FreeIMU.h"
#include
#include
int raw_values[9];
float conv_values[9];
float ypr[3]; // yaw pitch roll
char str[256];
float val[9];
float values[9];
FreeIMU my3IMU = FreeIMU();
//The command from the PC
char cmd;
void setup() {
Serial.begin(115200);
Wire.begin();
my3IMU.init(true);
// LED
pinMode(13, OUTPUT);
}
void loop() {
for(uint16_t i=0; i