Code on Arduino Mega is not Woking on DUE :(

The vector nav library which was working in arduino mega is not working on arduino due

while compilation it gives an error serial1/2/3 port not defined :frowning:

Please find the code working in Mega attached

IMU_Test.zip (4.87 KB)

Try to put an

#include "Arduino.h"

in the IMU_VN100.cpp file.