Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Roberto Navoni
@virtualrobotix

Compiling libraries/AC_Sprayer/AC_Sprayer.cpp
In file included from ../../libraries/AP_HAL/HAL.h:17:0,
from ../../libraries/AP_HAL/AP_HAL_Main.h:19,
from ../../libraries/AP_HAL/AP_HAL.h:8,
from ../../libraries/AP_Param/AP_Param.h:27,
from ../../libraries/AP_Math/AP_Math.h:9,
from ../../libraries/AP_Common/Location.h:3,
from ../../libraries/AC_Avoidance/AP_OAPathPlanner.h:4,
from ../../libraries/AC_Avoidance/AP_OAPathPlanner.cpp:16:
../../libraries/AP_HAL/CAN.h:29:33: fatal error: uavcan/driver/can.hpp: No such file or directory

include <uavcan/driver/can.hpp>

                             ^

compilation terminated.

In file included from ../../libraries/AP_HAL/HAL.h:17:0,
from ../../libraries/AP_HAL/AP_HAL_Main.h:19,
from ../../libraries/AP_HAL/AP_HAL.h:8,
from ../../libraries/AC_Avoidance/AP_OADatabase.h:3,
from ../../libraries/AC_Avoidance/AP_OADatabase.cpp:14:
../../libraries/AP_HAL/CAN.h:29:33: fatal error: uavcan/driver/can.hpp: No such file or directory

include <uavcan/driver/can.hpp>

the problem is during the library compilation
Andrew Tridgell
@tridge
@virtualrobotix hi! STM32F4xx doesn't have CAN0, it has CAN1 and CAN2.
PD0 is CAN1_RX, PD1 is CAN1_TX
you should just need to add those lines, then do a clean build
also make sure you have updated the submodules
Peter Barker
@peterbarker
@Jaaaky there's no "fast loop" as such on plane. Search for fast_loop_fn to find them IIRC
Henry Wurzburg
@Hwurzburg
@tridge @rmackay9 Tridge, yep, checking the commits ,Rover Stable 3.5.1 has the flash storage bug ...explains the reset of params to default I experienced when I was first playing with the boat using Stable....haven't had a repeats since I now have been testing my new PRs off master....puts my mind at ease that it wont be in the next Stable release...
Jaaaky
@Jaaaky

Hi Everyone, the dev wiki specially this part which I think it's the most important
http://ardupilot.org/dev/docs/learning-the-ardupilot-codebase.html is very outdated. Most is based on Nuttx/px4 or other deprecated things.

I think I can update many of those parts, but actually it's much work for a single person and not all updates would be perfect. So if every one with enough knowledge chooses a page to update and fix, I think we'd get a very good updated wiki within 1 week.

What do you think?

Roberto Navoni
@virtualrobotix
Thank you @tridge now try to change the configuration file and retry to compile .
PD0 CAN1_RX CAN1
PD1 CAN1_TX CAN1
I check and in my previous message i told a wrong number of CAN i already add the CAN1 not CAN0 the problem could be the submodules ... how i can rebuild the submodules ?
Roberto Navoni
@virtualrobotix
Ok i did waf clean , waf sub and then waf rover .
Roberto Navoni
@virtualrobotix

[ 20/494] Compiling libraries/AC_PID/AC_P.cpp
In file included from ../../libraries/AP_HAL/HAL.h:17:0,
from ../../libraries/AP_HAL/AP_HAL_Main.h:19,
from ../../libraries/AP_HAL/AP_HAL.h:8,
from ../../libraries/AP_Param/AP_Param.h:27,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl.h:7,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Sub.h:6,
from ../../libraries/AC_AttitudeControl/AC_AttitudeControl_Sub.cpp:1:
../../libraries/AP_HAL/CAN.h:29:33: fatal error: uavcan/driver/can.hpp: No such file or directory

include <uavcan/driver/can.hpp>

                             ^

compilation terminated.

Roberto Navoni
@virtualrobotix
I solve the iusse when i did waf configure --board VRBrain52 . The copter in 1 mb version of vrbrain don't work but the rover work fine
image.png
and can configuration appear in the mission planner great :) Thanks for support .
Andy Piper
@andyp1per
@peterbarker log list gives me a list of 52 logs! no idea where these are
@peterbarker found them - they are in ~/logs
??
Peter Hall
@IamPete1
very anecdotally it seems copter master doesn't like being powered from USB only it connects very briefly gets params and disconnects, powering from battery first its fine.
Peter Hall
@IamPete1
could also be a hardware issue i suppose, my Frsky telem has been on the blink, maybe the converter died and drawing too much current and getting hot as they seem to quite commonly, I will investigate further.
Mark Whitehorn
@kd0aij
This s.port inverter works for me, and it doesn't waste power: https://quadmeup.com/smartport-inverter-for-f4-flight-controllers/
Don Gagne
@DonLakeFlyer
I've been testing Follow Me support on master ArduCopter SITL and I'm noticing the HOME_POSITION only seems to be sent one at boot as opposed to being streamed? Something wrong there?
Andrew Tridgell
@tridge
@DonLakeFlyer that's right, it isn't streamed. Why is it needed for follow?
Don Gagne
@DonLakeFlyer
@tridge The home position is needed for a number of things. Follow is just one of them. But in reality for a GCS not being able to show the home location to the user is badness.
Peter Barker
@peterbarker
@DonLakeFlyer You can probe the autopilot for it, or ask for it to be streamed. Similarly for the origin.
Don Gagne
@DonLakeFlyer
@peterbarker Was it removed from one of the standard streaming sets? I don't remember it working this way before. Anyway thanks, I always forget with ArduPilot the gcs has to ask for streaming.
Peter Barker
@peterbarker
@DonLakeFlyer Actually, not quite true on the streaming thing - sadly, our behaviour varies between vehicles. Some will persist the streamrates, some will not. I don't think we've streamed home position.
Randy Mackay
@rmackay9
Copter-3.6.11-rc1 will be available for beta testing within the next couple of hours! If you have any feedback on this release please post in this discuss topic, thanks!
https://discuss.ardupilot.org/t/copter-3-6-11-rc1-available-for-beta-testing/47426
Ivan Riol
@imrj
@rmackay9 Randy, why does there seem to be so many subreleases in getting to 3.7? I have seen 3.7 Dev around for a very long time, even fly it on one of my cheap birds too....but 3.6 just keeps going....is there anything going making it difficult to get to 3.7?
Amilcar Lucas
@amilcarlucas
@imrj There will be no 3.7. We will move directly to 4.0
openPyramid
@openPyramid
hello, how to use gtest in ardupilot? where i can find the document? thanks
Andy Piper
@andyp1per
how do I stop mavproxy timing out while I try and setup my gdb breakpoints
Don Gagne
@DonLakeFlyer
@peterbarker As far as I can tell there isnt really a clean way to ask the autopilot for HOME_POSITION other than streaming it. The reason being is that the gcs side of things has no way of knowing when HOME_POSITION becomes valid. So no way to know when a GET_HOME_POSITION is give you good data. Am I missing something there?
Vaibhav Goel
@Vaibhavg133
Hello, I'm facing difficulty in connecting the Raspberry Pi 3 with the arducopter.
I am using USB port for the connection and it giving me the error of no heartbeat receiving. Please Help
Randy Mackay
@rmackay9
dev call starts now!
Andrew Tridgell
@tridge
Francisco Ferreira
@OXINARF
@openPyramid What do you mean with use? Develop new tests or running the existing ones?
@andyp1per Are you using sim_vehicle? It has an option to delay MAVProxy starting (you can also use the option to not start MAVProxy and you would then start it yourself)
@DonLakeFlyer You'll get command failed if home isn't set.
@Vaibhavg133 That's not enough information, you need to say exactly what you are doing.
Peter Barker
@peterbarker
@andyp1per ctrl-z in the terminal containing MAVProxy. Also, you can add breakpoints on the SITL commandline with -B.
@andyp1per I've looked at disabling the timeouts somehow - turns out to be a little tricky. I think it would have to come after moving to a self.recv_match (in place of self.mav.recv_match) - I want to do that anyway so we can change recv_match to time out based on the simulated time rather than wallclock time. That change should make the tests more reliable.
openPyramid
@openPyramid
@OXINARF Problem solved with peterbarker's guide, https://discuss.ardupilot.org/t/how-to-use-gtest-in-ardupilot/47455, thanks anyway.
Andy Piper
@andyp1per
@OXINARF @peterbarker thanks! Still struggling to get decent backtraces on macos
I think I used to use lldb in an old life but can't see how to do that - is there a way?
Peter Barker
@peterbarker
@andyp1per sorry, not familiar with macosxy stuff. If you have a /usr/bin/sample, try pointing that at an ArduPilot process?
Andy Piper
@andyp1per
no its something to do with the symbol tables, gdb doesn't do a very good job, lldb is much better
Andy Piper
@andyp1per
ahh got it - I can run lldb manually and connect mavlink manually. Now I have a super backtrace :)
Peter Barker
@peterbarker
PRs welcome :-)
Andy Piper
@andyp1per
hah, ok probably worth it as lldb works so much better on mac with clang