Flight modes

The Ardupilot allows you to have multiple flight modes of which I would actually only need 2 and downsizing has already been discussed but downsizing irrelevant code is not what I want/need.

 

Could I have two sets of autopilot code one setup for fast servo control, the other setup for slow servo control? (Space permitting or if not remove another mode for space)

Could I add altitude based servo variables? the higher she goes the slower the servos react

 

I will be using a glider first off (because I dont care if it breaks) so motor control is not needed. Is there a variable for this or do I delete/adjust a section of code

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

Join diydrones

Email me when people reply –

Replies

  • I would also like to increase my mode options. to use the mixing option to get 6 modes, will this require reprogramming of the Atiny?

    Thanks for all your help
  • Does anyone know if it is possible to add more than three modes to the control modes? I have a proportional dial on channel 7 on my hitec eclipse 7 and I would love to be able to do manual, stabilize, waypoints and RTL on the same flight.
  • Developer
    I do this when testing....
    void read_control_switch(){
    byte switchPosition = readSwitch();
    if (oldSwitchPosition != switchPosition){

    switch(switchPosition)
    {
    case 1: //
    set_mode(POSITION_1);
    break;

    case 2: //
    set_mode(POSITION_2);
    // set a variable here such as a PID value
    break;

    case 3: //
    set_mode(POSITION_3);
    // set a variable here such as a PID value
    break;
    }

    oldSwitchPosition = switchPosition;

    // reset navigation integrators
    // -------------------------
    reset_I();
    }
    }
  • Developer
    You can certainly implement this in your code. Look at the roll slew rate limiter. If you set up a similar pitch slew rate limiter and then set up modes which change the limiter parameters that would do what you want.

    If you are not using a motor then use the airspeed sensor. Elevator will be based on airspeed hold. You can just ignore the throttle parameters.
This reply was deleted.

Activity

Gremsy liked Gremsy's profile
Mar 12
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…