Working AHRS Arduino code has been posted for the LSM9DS1 breakout, based on the Madgwick/Mahony filter. I also posted code for a tilt-compensated compass and detailed instructions and code for the most accurate 3D accel/magnetometer calibration. The AHRS fusion code requires the Sparkfun LSM9DS1 library. With default settings, the update rate is 80Hz on a 16 MHz Arduino Pro Mini.
This sensor is by far the best performing one I have yet encountered, among the consumer grade IMUs.
I used the Adafruit LSM9DS1 breakout for the development as it has on board level shifters for 3V and 5V processors, but it should work perfectly with the Sparkfun breakout and a 3.3V processor.
Download at https://github.com/jremington/LSM9DS1-AHRS
Note: The X, Y and Z accel/gyro axes DO NOT form a right handed system, as stated in the Sparkfun breakout board product description. This is corrected in the code.
Happy to entertain questions!