     //Allow to get magnetometer data
     mpu.setI2CMasterModeEnabled(0);
     mpu.setI2CBypassEnabled(1);
+    
+    if (!driver.init())
+      Serial.println("init failed");
 }
 // ================================================================
 // ===                    MAIN PROGRAM LOOP                     ===

D2 to INT (#0)
GND to GND
5V to 5V
*/

// I2Cdev and MPU6050 must be installed as libraries, or else the .cpp/.h files

#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
    #include "Wire.h"
#endif

#include <RH_ASK.h>
#include <SPI.h> // Not actually used but needed to compile

RH_ASK driver(4800, 11, 12);

float ax, ay, az, gx, gy, gz, mx, my, mz; // variables to hold latest sensor data values 
float qq[4] = {1.0f, 0.0f, 0.0f, 0.0f};
