Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:24
    rmackay9 commented #13370
  • 10:24
    rmackay9 closed #13356
  • 10:24
    rmackay9 commented #13356
  • 10:23

    rmackay9 on master

    RC_Channel: fix handling of rc_… (compare)

  • 10:17
    rmackay9 edited #12547
  • 09:58

    rmackay9 on master

    Copter: version to 4.0.2-dev (compare)

  • 09:53
    rmackay9 edited #12547
  • 09:52
    rmackay9 edited #12547
  • 09:51
    rmackay9 edited #12547
  • 09:50
    IamPete1 labeled #13195
  • 09:46
    rmackay9 commented #13379
  • 09:46
    rmackay9 commented #13379
  • 09:01
    Jaaaky closed #13307
  • 09:01
    Jaaaky commented #13307
  • 08:58
    Jaaaky review_requested #13388
  • 07:34
    priseborough commented #13379
  • 07:29
    priseborough commented #13379
  • 07:17
    Travis tridge/ardupilot (pr-px4flow-external) passed (4177)
  • 06:45
    andyp1per synchronize #11886
  • 06:33
    rmackay9 commented #13358
Jaaaky
@Jaaaky
If there any reason Terrain::update() would be running - and doing much IO - if TERRAIN_ENABLE is 0 ?
It's calling the expensive read_cmd_from_storage() all the time, when no sdcard is there or it cannot get terrain data for example.
I'd insert if (!enable) { return; } as 1st line. @tridge what do you think?
Pierre Kancir
@khancyr
that looks like a bug
surely need by some function that need terrain update, but if we disable Terrain, is should be disable
Jaaaky
@Jaaaky

I'm looking at I/O performance generally. One of the other bad things I found is that it'd read a big area of param storage to save a param, it's getting slower and slower when you've modified many of them from default values as it'd have to scan more until it finds it or not.

Would hash tables be applicable here? I've not implemented it before, so don't have an idea about how much memory it would need. But could it make looking up param addr faster? So on load_all() it initialized the table, then it just looks it up and do sync write, instead of many many reads followed by a write.

RhinoAus
@RhinoAus
Is it possible to create a mission item that is sent to a subcomponent? IE have a mission item that asks a payload component to toggle a relay instead of the autopilot toggling its own relay?
Andrew Tridgell
@tridge
@Jaaaky you're right, we should add that check
@Jaaaky the param code is optimised to minimise memory usage, not minimise CPU
@Jaaaky it does do the save in a background thread at low priority, so it doesn't affect flight
Abhay Saxena
@aby03
i am having Bad AHRS problem in Mission Planner when try to run sitl simulation of quad copter
i compiled ardupilot git code using waf and running it through dronekit-stil for arducopter
Pierre Kancir
@khancyr
Abhay Saxena
@aby03
how do i load it?
jwcalvert
@jwcalvert
I am starting to Build rover under ubuntu with Eclipse; 1st time for everything. What is the correct build command or do I just leave it to the DEFAULT? I did try the DEFAULT and it compiled without errors but still I want to be certain. Suggestions please!!
Paul
@PRIMETSS
@aby03 Believe its through Config/Tuning, then 'Full Parameter List' then 'Load from File' (I get an error loading rover.parm however)
jwcalvert
@jwcalvert
What is the preferred method of implementing TRIG functions ( eg sin, cos, tan, etc) in ardupilot/rover??
jimovonz
@jimovonz
@rmackay9 I have recently played with the WP_SPEED_MIN parameter in Rover and had some unexpected results. For the most part it behaves as expected however, when initiating an auto mission from a position/orientation where the vehicle is behind the first waypoint and facing away, the vehicle will reverse at WP_SPEED_MIN indefinitely. I have tracked the issue down to AR_WPNav::apply_speed_min() : "desired_speed = is_negative(desired_speed) ? -speed_min : speed_min;" Here the code tests for the sign of the desired speed so it can apply the minimum speed in the correct direction (forward or reverse) however, the test is based on the desired_speed parameter passed into the function which in turn is from the previous speed limited des_speed_lim rather than the actual _desired_speed. In the situation where the vehicles previous speed is negative but the desired speed is positive, the speed limiting can prevent des_speed_lim from becoming positive immediately and this results in the apply_speed_min() function setting a reverse speed when it is not intended. The solution seems to be using _desired_speed for the is_negative() test - i.e: "desired_speed = is_negative(_desired_speed) ? -speed_min : speed_min;"
Mark Whitehorn
@kd0aij
@jwcalvert You'll find a lot of trig functions used in the AP_Math library.
Generally, #include <math.h> and call functions like cosf(), sinf() etc. for single precision float results.
Paul
@PRIMETSS
Anyone know where to set the GPS Baud comms rate? Got a uBlox M8P dev RTK GPS boards connected /communicating to PIXHawk 4 via modified GPS cable (till using compass), trying to do RTK Injection. But it forces the Baud rate to 115200. I need it at the same speed as the shared RTK RF Radios which run at 19200bps. (They are part of another legecy project, so dont really want to change the radio baud to 115200bps)
clauglez1
@clauglez1
Hi please, anyone knows how to repair a welding from a Pixhawk board? I accidentally broke it and now I cannot connect my sensors. It is the 6.6 ADC port. I tried to weld it but it doesn't seem to attach both surfaces...
Abhay Saxena
@aby03
i need to send pwm directly to individual motors from my new mode class i am creating. Any ideas which object and function to use for the same?
jwcalvert
@jwcalvert
@kd0aij Thanks for the heads up. I would never have found xxxf Trig functions.
Mark Whitehorn
@kd0aij
👍
Lucas De Marchi
@lucasdemarchi
@jberaud @rmackay9 I'm trying to revive the support for bebop 1 on ardupilot (because I don't want to risk my disco for some changes on Skycontroller 2). RC is working for bebop now. I also "fixed" the issue of having to statically build arducopter: I can now use libiio and other libs - I'm bundling them.
@jberaud @rmackay9 after checking https://ardupilot.org/dev/docs/building-for-bebop-on-linux.html it seems it's a bit outdated... and after the step "Upload the update file bebopdrone_update.plf", the original flight stack started to flip on takeoff and gps is failing (not sure if it wasn't failing before). With arducopter, trying a " bench takeoff " (i.e. holding it with my hands) it seems the drone would equally flip
@jberaud @rmackay9 any idea what would cause that? motor order appears to be correct and with the right direction (it's harder to check since bebop doesn't support turning one motor at a time)
Ben
@bendespain
Anyone know how to set servos using MavProxy?
I've got sequence of servo actions I'd like to perform just via command line before I test them on a waypoint mission
RickReeser
@RickReeser
servo set x yyyy, where x is the servo number and yyyy is pwm value
Ben
@bendespain

ah, yes, thanks, I guess I had a hardware issue. Thanks!
This worked for me:

mavproxy --master com7
servo set 9 2200

FergalLonerganKUL
@FergalLonerganKUL
@RickReeser is there a similar command for MavROS?
Sena Ayvacı
@GSPNFM
Hello, I just started making quadcopter. I am using Pixhawk card and I want to load code into it. On which platform should I do this? I will be happy if you inform me.
Harshit Kumar Sankhla
@harshitsankhla
hi, any suggestions on the best combination of setting up a development and simulation/test environment on mac OS X - i think the build environment setup given on the dev page is fine, any other combination based on experience ? Also not using vagrant
Julien BERAUD
@jberaud
@lucasdemarchi Hi. The "building for bebop on linux" should now be totally rewritten. I should mostly match what's for the bebop2, but I'll need to get back to my bebop1 hardware. The flip problem could come from the differences in motor orders between bebop1 and bebop2 if some things have been inverted...
Paul
@PRIMETSS
image.png
Anyone know why SR3 (is this usb port?) seems to reset back to 2Hz after saving para, then re-opening MissionPlanner. Other SR#'s stay as set.
Anyone know what SR#'s relate to for PIXHawk4? Cant find a list anywhere
Lucas De Marchi
@lucasdemarchi
@jberaud thanks. I will double check the ordering, but on a first check it appears to be correct. Note that it flipped with the original flight stack... So I think if it may not be possible that the .plf update changed the bldc firmware
Prasheel.S.Renkuntla
@PrasheelSR_twitter
Hello all, I am a novice in Dronekit. I have learnt the arducopter very well but I want to work on a fixed wing plane. When I run the following commands,
dronekit-sitl plane (terminal 1)
mavproxy.py --master tcp:127.0.0.1:5760 --out 127.0.0:14550 --out 127.0.0.1:14551 --map --console(terminal 2)
I get this message in terminal 2 -" no link
link 1 down
no link"
Will be happy if anybody is able to help me
alexx295
@alexx295
Hi, i'm new in this but, I borrowed from a friend a drone that have ardupilot 2.5 (my friend can't help me because he doesn't know to code) and i want to make an university licence and i need to know everything i do at this drone, how it works, mathematics, from where i should start? Any turoriat to learn and be able to understand it good.
Mark Whitehorn
@kd0aij
@alexx295 This is the place to start: https://ardupilot.org/dev/index.html
alexx295
@alexx295
@kd0aij Thanks
Harshit Kumar Sankhla
@harshitsankhla
has anyone tested the SITL sim_vehicle.py with python3 and OS X
i get the error - /ArduPilot/modules/waf/waflib/Task.py", line 338, in process ….. ImportError: No module named future
i run sim_vehicle with python3 and future is installed
Jaaaky
@Jaaaky
Does mavproxy have MAV_CMD_FIXED_MAG_CAL_YAW implemented as command? Which GCS has this implemented if any?
Andy Piper
@andyp1per
@tridge any chance ArduPilot/ardupilot#13169 can be merged?
Gautham P Krishnan
@gauthampkrishnan
Hello everyone I am new to this channel :) I need to contribute to the Ardupilot repo
Lucas De Marchi
@lucasdemarchi
@harshitsankhla you need python3-future
Jaaaky
@Jaaaky
@gauthampkrishnan Read as much as possible on ardupilot dev wiki first, read contributing guide, fork, clone, try to understand code structure, review the code of vehicle and some random libs, create new branch, have an idea try to apply it, follow the same coding style - try to mimic how such thing is done on other parts of code, test on SITL and real boards, commit, git push your changes to your fork, send a link here about your changes and idea behind them, if interesting, send a pull request. Be patient :)
Also learncpp and a bit of python too is not bad.