Why no CH6_opt

 

 After playing with Mp and APM2  looking for the CH6_opt for tuning as described in the wiki  I started looking at the source.

I see the CH7_opt  can be defined in the config file but no mention of the CH6 and the box does not seem to exist in the current MP

 

 

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    In the CLI you can go to setup and manually set the CH_6 option with the tune command.

    You'll need to look up the values in the defines.h file, but it's pretty clear once you find it.

    // CH_6 Tuning
    // -----------
    #define CH6_NONE 0
    // Attitude
    #define CH6_STABILIZE_KP 1
    #define CH6_STABILIZE_KI 2

    ...

    The CLI command range will lat you set the scale like this:

    range 0 1500   

    This means 0 to 1.5

    The mission planner hides the Interger funkiness from you, but the CLI does not.

    Jason

  • Developer

    radio_tuning

    radio_tuning_high

    radio_tuning_low 

    are the parameters assigned to CH_6 tuning.

    They are stored as ints but converted to floats on the fly tuning() in Arducopter.pde

    static void tuning(){

      tuning_value = (float)g.rc_6.control_in / 1000.0;
      g.rc_6.set_range(g.radio_tuning_low,g.radio_tuning_high);

      switch(g.radio_tuning){

      ...

      }

    }

This reply was deleted.

Activity

Chris Anderson liked Zara Mae Pickering's profile
May 21
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
More…