Parameters Change without input.

I've been chasing this for a while now so this morning I reset the APM in terminal and with the button, reloaded MP and reloaded the firmware for Arduplane V2.73. I left all parameters at default except cruise speed. The WP radius was 60 and the loiter was 40 it believe. I loaded the parameters into the APM and Refreshed several times.The Parameters stayed at 60 and 40. Flew a couple of simple missions and the plane looked smooth. Cool. Came back and refreshed the parameters and the  WP radius was 9 and the loiter was 3. Is this a bug or what???? I never changed a parameter except the cruise speed.

Please, some input??

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi, I have dug again!

    Here is what came to the light of the day. in FlightPlanner.saveWPs, which is fired when saving the WP list to the UAV, there is at the end:

    if (CHK_holdalt.Checked)
    {
    port.setParam("ALT_HOLD_RTL", int.Parse(TXT_DefaultAlt.Text) / MainV2.comPort.MAV.cs.multiplierdist * 100);
    port.setParam("RTL_ALT", int.Parse(TXT_DefaultAlt.Text) / MainV2.comPort.MAV.cs.multiplierdist * 100);
    }
    else
    {
    port.setParam("ALT_HOLD_RTL", -1);
    port.setParam("RTL_ALT", 0);
    }

    port.setParam("WP_RADIUS", (byte)int.Parse(TXT_WPRad.Text) / MainV2.comPort.MAV.cs.multiplierdist);

    try
    {
    port.setParam("WP_LOITER_RAD", (byte)(int.Parse(TXT_loiterrad.Text) / MainV2.comPort.MAV.cs.multiplierdist));
    port.setParam("LOITER_RAD", (byte)int.Parse(TXT_loiterrad.Text) / MainV2.comPort.MAV.cs.multiplierdist);
    }
    catch
    {

    }

    So it writes parameters! Five of them. If something goes wrong with loiter radii param write, there is no error message.

    Regards

    Soren

  • Hi, I think MP does a few more things than one thinks when uploading a mission. Bevause the wp and loiter radii are settable from the mission planning UI, it also stores these when saving a mission. Even though they are strictly speaking parameters and not mission definitions. Or that is what I believe; you can experiment with it. The radii input fields are above the waypoint list in the Planner tab. Enter some values, upload the mission, refresh parameters and see.
    I also heard several stories about surprise changes to the ALT_HOLD_RTL parameter, you can check that too (it is in the advanced list) and might be the "default alt" setting. I don't have a running setup right here but I hope this answer is OK anyway.
    Regards, Søren
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #14 - #ParkingLotNerds join us January 15th for #AutonomousRacing #RoboRace ⁦@DAVGtec…
Monday
DIY Robocars via Twitter
RT @chr1sa: And after that came our races, 50 in all. This battle between these two Russians was the best we've ever seen -- incredible fig…
Monday
DIY Robocars via Twitter
RT @chr1sa: Before our @DIYRobocars virtual race this weekend, we had a presentation from the team that won the Indy Autonomous Challenge i…
Monday
DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Dec 4, 2021
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Nov 28, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23, 2021
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31, 2021
More…