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 @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…