Oh, just thought a bit more info might be helpful. Obviously, this is very beta, I need to make a few more tweaks.
When you start FG and go fly, the GY85 has to be facing the right way, and has to be still to capture the first readings for the yaw offset. If the tracking starts to go a bit wonky, just reset the arduino with the GY85 in a centered position, and everything should pull true(although, I've not had it drift yet)
Once evrything is uploaded and calibrated, try my settings out with FG, they might just work straight off, but if not......
The bits of code that need to be tweaked to get the tracking playing right with FG are:
The Output.ino file, lines 25 & 26
- Code: Select all
}
Serial.print(mapf((TO_DEG(yaw) - (offSet)), 100, -100, -180, 160)); Serial.print(","); <<<<<<<<<
Serial.print(mapf(TO_DEG(pitch), -45, 45, -30, 30)); Serial.print(","); <<<<<<<<<
Serial.println();
}
}
Make your changes, re upload and retest.
Oh, Don't forget - --generic=serial,in,30,/dev/ttyUSB0,9600,headtrack