Hi,
I’ve successfully built my quadcopter with navio2 + RPI3 and i’m trying to calibrate the sensors in MP. But it doesn’t work and it seems that it wants an upgrade because it always shows that 4.0.3 is available.
So i’ve build the 4.0.3 for navio2 following these guides: https://docs.emlid.com/navio2/common/ardupilot/building-from-sources/ https://ardupilot.org/dev/docs/building-the-code.html
And I’ve edited the file with the path.
But when i launch it it fails:
Process: 884 ExecStart=/bin/sh -c /home/pi/ardupilot/build/navio2 ${ARDUPILOT_OPTS] (code=exited, status=126)
PS
I’ve also another issue, sometimes, I can’t connect to arducopter because when it gets parameters, it’s blocked on STAT_RUNTIME
Instead of an asterisk, you should insert the naming of the vehicle you want to use. Please note, that you need to edit the arducopter.service or arduplane.service files (or the files with other vehicles), not ardupilot.service.
As I’ve checked, Mission Planner gets stuck on STAT_RUNTIME when there is a bad parameter or bad value. Would it be possible to check if the full reset of the parameters will work for you? You can learn more about this issue on Ardupilot’s forum thread.
Hi i’m currently facing to a similar situation, so it might help to cross informations:
1°) I tried to Compile with waf from raspberry, in ran well t’ill i got that error message:
"> …/…/libraries/AP_GPS/AP_GPS.cpp: In member function ‘void AP_GPS::send_mavlink_gps_raw(mavlink_channel_t)’:
…/…/libraries/AP_GPS/AP_GPS.cpp:1005:10: error: too few arguments to function ‘void mavlink_msg_gps_raw_int_send(mavlink_channel_t, uint64_t, uint8_t, int32_t, int32_t, int32_t, uint16_t, uint16_t, uint16_t, uint16_t, uint8_t, int32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint16_t)’
0); // TODO one-sigma heading accuracy standard deviation
^
compilation terminated due to -Wfatal-errors." => So might be a reason for this error ? (would be great to know…)
=> I created a directory such as /opt/ardupilot/navio2/arducopter-4.0/bin/arducopter and changed rights to 0775 as well.
As i could not find 4.0 in the list on Ardupilot searching into files i replaced :
“/opt/ardupilot/navio2/arducopter-3.6/bin/arducopter” by :
“/opt/ardupilot/navio2/arducopter-4.0/bin/arducopter”
in the file var/lib/dpkg/alternatives/arducopter/
=> It works fine boots directly on Arducopter-4.03
My compilation was fine. I worked with the latest Emlid Navio img and did Upgrade and update on it. Then I downloaded the GitHub archive and worked with the dev fork (default).
The option to create an arducopter-4.0 directory is cleaner than my work.
It seems it could be possible to access it from emlidtool (doesn’t work…)
once you have learned the path where to move the compiled arducopter file, everything is easier.
I hope that the emlid staff will update the upgrading guide.
Another error is in the git repository link. If you try compiling from source reported in the guide you stack in different error. If you use the git repository from the Ardupilot guide the compiling process through waf work well.
In general in Ardupilot ground station the flight controller can be connected without problem and configuration work well but I have a lot of problem with QGround Station because a lot of parameters configuration are not recognized correctly.
I think I return to the 3.6 copter version.
I have a question… If I use emlid tool from the terminal of raspberry the firmware version that the interface proposed the installation of 3.6 copter firmware.
But do I have to restore the old arducopter file in its folder?
You will have to restore the old arducopter file in the 3.6 folder. (mv command)
No need to use emlidtool, just reboot after renaming.
Installing latest version of QGroundControl can solve “missing parameters”, not always… Same with Mission Planner, even beta version.
Compiling is sometimes tricky. It worked with 4.10dev, it stopped working with 4.04rc4…, even with a fresh GitHub archive. I am quite happy with arducopter files from the arducopter firmware archive.
I just wanted to tell you that we have released the new image for Navio2 that supports ArduCopter 4.0.3. You can learn more about the updates and fixes on this community forum thread: