Problem calibrating MPU6050 on Adafruit trinket pro 3V

Dear all,

I am trying to build a DIY motion controller for an Alexmos based 3-axis brushless gimbal.

Having followed all the instructions from the original creator (http://www.analogx.com/contents/articles/motion-controller.htm)

I try to upload the calibration sketch and it returns this error message;

MPU6050_calibration.ino: In function 'void setup()': MPU6050_calibration:58: error: redefinition of 'void setup()' sketch_oct07c:4: error: 'void setup()' previously defined here MPU6050_calibration.ino: In function 'void loop()': MPU6050_calibration:96: error: redefinition of 'void loop()' sketch_oct07c:9: error: 'void loop()' previously defined here redefinition of 'void setup()'

Can anyone tell me what is going wrong and how to fix it?

Thanks in advance!

Neil

It looks like there are duplicate definitions of the functions setup and loop.

Okie dokie, can you tell me how to fix that? I don't know about the code (I'm more nuts n bolts than bits n bytes...) I can upload the code for you to look at if you have the time?

Thanks

Neil