Hello, I was looking for a way to bring life back to my chinese gimbal and after several tries, I only managed to burn an Arduino Uno bootloader... When trying to upload the BruGi open source gimbal firmware it shows a few errors and I'm not able to upload it and test, I'd be very glad if someone could make the code compile... It doesn't seem to be a big issue, maybe something to do with the various code tabs, I don't know.
Please do this:
- When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
- In a forum reply here, click on the reply field.
- Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
- Press "Ctrl + V". This will paste the error between the code tags.
- Move the cursor outside of the code tags before you add any additional text to your reply.
If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link that will allow you to make the attachment.
Sorry, my bad for not posting the error message.
In file included from C:\Users\KylePolt\Desktop\FPV e Quad\_BruGi\_BruGi.ino:56:0:
sketch\orientationRoutines.h: In function 'void gyroOffsetCalibration()':
orientationRoutines.h:100:3: error: 'initMPU' was not declared in this scope
initMPU();
^~~~~~~
sketch\orientationRoutines.h:100:3: note: suggested alternative: 'init'
initMPU();
^~~~~~~
init
In file included from C:\Users\KylePolt\Desktop\FPV e Quad\_BruGi\_BruGi.ino:58:0:
sketch\BLcontroller.h: In function 'void __vector_13()':
BLcontroller.h:225:5: error: 'TIMER0_isr_emulation' was not declared in this scope
TIMER0_isr_emulation();
^~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\KylePolt\Desktop\FPV e Quad\_BruGi\_BruGi.ino:59:0:
sketch\SerialCom.h: At global scope:
SerialCom.h:54:58: error: 'initIMUtc' was not declared in this scope
{"accTimeConstant", INT16, &config.accTimeConstant, &initIMUtc},
^~~~~~~~~
SerialCom.h:111:58: error: 'initSensorOrientation' was not declared in this scope
{"axisReverseZ", BOOL, &config.axisReverseZ, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:111:58: note: suggested alternative: 't_sensorOrientationDef'
{"axisReverseZ", BOOL, &config.axisReverseZ, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:112:58: error: 'initSensorOrientation' was not declared in this scope
{"axisSwapXY", BOOL, &config.axisSwapXY, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:112:58: note: suggested alternative: 't_sensorOrientationDef'
{"axisSwapXY", BOOL, &config.axisSwapXY, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:124:58: error: 'initIMUtc' was not declared in this scope
{"accTimeConstant2", INT16, &config.accTimeConstant2, &initIMUtc},
^~~~~~~~~
SerialCom.h:126:58: error: 'initSensorOrientation' was not declared in this scope
{"gyroCal", BOOL, &config.gyroCal, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:126:58: note: suggested alternative: 't_sensorOrientationDef'
{"gyroCal", BOOL, &config.gyroCal, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:127:58: error: 'initSensorOrientation' was not declared in this scope
{"gyrOffsetX", INT16, &config.gyrOffsetX, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:127:58: note: suggested alternative: 't_sensorOrientationDef'
{"gyrOffsetX", INT16, &config.gyrOffsetX, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:128:58: error: 'initSensorOrientation' was not declared in this scope
{"gyrOffsetY", INT16, &config.gyrOffsetY, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:128:58: note: suggested alternative: 't_sensorOrientationDef'
{"gyrOffsetY", INT16, &config.gyrOffsetY, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:129:58: error: 'initSensorOrientation' was not declared in this scope
{"gyrOffsetZ", INT16, &config.gyrOffsetZ, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:129:58: note: suggested alternative: 't_sensorOrientationDef'
{"gyrOffsetZ", INT16, &config.gyrOffsetZ, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:131:58: error: 'initSensorOrientation' was not declared in this scope
{"accOffsetX", INT16, &config.accOffsetX, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:131:58: note: suggested alternative: 't_sensorOrientationDef'
{"accOffsetX", INT16, &config.accOffsetX, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:132:58: error: 'initSensorOrientation' was not declared in this scope
{"accOffsetY", INT16, &config.accOffsetY, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:132:58: note: suggested alternative: 't_sensorOrientationDef'
{"accOffsetY", INT16, &config.accOffsetY, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
SerialCom.h:133:58: error: 'initSensorOrientation' was not declared in this scope
{"accOffsetZ", INT16, &config.accOffsetZ, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:133:58: note: suggested alternative: 't_sensorOrientationDef'
{"accOffsetZ", INT16, &config.accOffsetZ, &initSensorOrientation},
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
sketch\SerialCom.h: In function 'void updateAllParameters()':
SerialCom.h:259:3: error: 'initIMU' was not declared in this scope
initIMU();
^~~~~~~
sketch\SerialCom.h:259:3: note: suggested alternative: 'initRC'
initIMU();
^~~~~~~
initRC
SerialCom.h:260:3: error: 'initSensorOrientation' was not declared in this scope
initSensorOrientation();
^~~~~~~~~~~~~~~~~~~~~
sketch\SerialCom.h:260:3: note: suggested alternative: 't_sensorOrientationDef'
initSensorOrientation();
^~~~~~~~~~~~~~~~~~~~~
t_sensorOrientationDef
exit status 1
'initMPU' was not declared in this scope
Finally found a newer version that's working... About 4 hours Dockduckgoing around...
I'm glad to hear you got it working. Thanks for taking the time to provide an update with your solution!