Custom firmware failed to build

I do apologize in advance if I’m writing in the wrong sub-category but i was unable to find a better one.

I want to experiment with rovers and I’m putting together a simple 2ch boat.

Considering the “simple task” I decided to recover from the museum an old VRbrain 5.2.

To add a twist, I was going to buy a CAN node in order to expand the today limited capability of the board.

I went to build a custom firmware but I always have the following error:

In file included from …/build_src/libraries/AP_Compass/AP_Compass_DroneCAN.cpp:16:
…/build_src/libraries/AP_Compass/AP_Compass_DroneCAN.h:13:36: error: expected ‘)’ before '’ token
13 | AP_Compass_DroneCAN(AP_DroneCAN
ap_dronecan, uint32_t devid);
| ~ ^
| )
compilation terminated due to -Wfatal-errors.

Waf: Leaving directory `/mnt/volume_nyc3_01/custom/base/tmp/rover:VRBrain-v52:548b0b2c3260cd0cff42e2093537066431a3620b:63bab63712b30dce93444a3f1fdb41d8/VRBrain-v52’
Build failed
→ task in ‘objs/AP_Compass’ failed (exit status 1):
{task 139633786924368: cxx AP_Compass_DroneCAN.cpp → AP_Compass_DroneCAN.cpp.0.o}
(run with -v to display more information)
done build


What I’m doing wrong?

hello??? can somebody help me?

Looks like an error in your code. Can you share your AP_Compass_DroneCAN.cpp file?

This is not my code, it is just copy/paste from custom firmware log. I just selected the features that I needed… always fails on compass done can