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 diydrones2 to add comments!

Join diydrones2

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

Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
2 hours ago
DIY Drones via Twitter
Welcome to the new DIY Drones design!. You may have noticed that DIY Drones looks a little different today. That's… https://t.co/cg2EmeDGMQ
16 hours ago
DIY Drones via Twitter
New! Online Training on Drones for Disaster Response https://t.co/brqRuujjY2
yesterday
DIY Robocars via Twitter
https://t.co/8EMCvYW6oz
Tuesday
DIY Robocars via Twitter
RT @OttawaAVGroup: We are going to try something new this week. We will be having a drop-in style meeting Wednesday @ 7-9pm EST. Pop in and…
Monday
DIY Robocars via Twitter
RT @tawnkramer: Thanks Everyone for another fun virtual race! Amazing Ai racers competing head-to-head, Virtual Makers Fair event. Catch us…
Sunday
DIY Robocars via Twitter
RT @make: Find out the latest from @diyrobocars at 10am PT from @chr1sa of @3DRobotics on Virtually Make Faire! #makerfaire #maketogether #…
Saturday
DIY Robocars via Twitter
RT @Heavy02011: Join us Saturday online: Virtual Race League: @DIYRobocars Race #2 - Parking Lot Nerds https://t.co/aJUu4sdutx #Meetup via…
Saturday
DIY Robocars via Twitter
RT @donkey_car: Yay, we are part of the virtual @makerfaire with @diyrobocars. Come see our race or better yet train a model and race with…
May 21
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars Virtual AI Race is going to be part of the virtual @makerfaire on Sat! https://t.co/wnMDAboLID
May 20
DIY Robocars via Twitter
RT @tawnkramer: Please join us next week for our second DIYRobocars online race. We will be using a new Mountain Track course! https://t.co…
May 19
DIY Robocars via Twitter
RT @SmallpixelCar: I realized that the size of the cones in @diyrobocars is known. If we can detect the bounding box, which can be done wit…
May 19
DIY Drones via Twitter
RT @chr1sa: Our next @DIYRobocars autonomous car virtual race is this Saturday. Sign up here to compete or just spectate on @Twitch https:/…
May 19
DIY Drones via Twitter
Definitive Guide to Setup Drone Delivery System https://t.co/7ibwcgF24h
May 19
DIY Robocars via Twitter
RT @DAVGtech: The next @diyrobocars virtual robocar race is this Saturday. One of many interesting issues we are taking a stab at is "how c…
May 18
DIY Robocars via Twitter
RT @chr1sa: cc @DIYRobocars @donkey_car https://t.co/ewbyqZ3xC0
May 18
More…