read the magnetometer as part of the main loop
when initialising PWM outputs, ensure they start at 0% not 100%
added some gyro thoughts in the comments, added wait time for zero settling