Adding the GY-91 was easy, but oddly (read: my incomplete understanding of C), it would reports type conversion errors on:
int16_t mag_max[3] = {0x8000, 0x8000, 0x8000},
So after some research I changed it to:
int16_t mag_max[3] = {-32768, -32768, -32768},
And it compiled.
Then at then some point it starting giving me errors "undefined reference to `_kill`" and similar, and wouldn't compile, so after some Googling, I added this to my .ino:
extern "C" {
int _getpid() { return -1;}
int _kill(int pid, int sig) { return -1; }
int _write() {return -1;}
}
The LCD display lines are:
- acceleration values in milli-G's
- gyro values in degree/sec
- mag values in degree/sec
- yaw pitch roll
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.