Developer

Ardupilot 2.7 Beta 4

I've posted Beta 4 onto the SVN. Now I've realized I should have called them Alphas with all of the new code and features I've been working on. Also, I wanted to mention that 2.7 is moving to almost lockstep development with Mega. I have both code bases to the point where I can compare/exchange any part. 

What's new - 
A totally reworked 4 channel system. You can now capture 4 channels with .5µs accuracy and output throttle and rudder with 4µs accuracy. 

New throttle output is more reliable and has a more standard 0 - 100 definition so config files will make more sense. This also makes Mega config files more compatible.

Channel 4 output has two modes 
- one for Rudder correction which will output a % of Aileron to the Rudder. (.2 is the default) This mode will allow you to override the rudder so you can land in Stabilize mode and steer the plane on the ground.
- one for programmatic control of Channel 4 - Great for dropping eggs or snapping photos.

To switch modes, edit your config file: CH4_RUDDER = 1 for Rudder control, 0 for programmatic control

To control the rudder action in flight with the AP, set ADVERSE_ROLL to a value from 1.0 to -1.0. Moving the rudder stick will override the action, just like the Pitch and Roll Controls.

Jason



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

Join diydrones

Email me when people reply –

Replies

  • Hello people, I have a doubt about Loiter mode. I read in the manual that aircraft will circle in current position. I'm getting a navigation to next waypoint and then circles in that waypoint. What should be the correct behaviour? Thanks!
  • Moderator
    Jason & Michael,

    In the SVN repository rev1310 deleted the Ardupilot2xplanes.exe file and as of rev1319 perl scripts and xml files have been updated or added, but no executable.

    Will the executable in rev1309 support the ch4 functionality at that rev level? I just want to try to do some testing in Xplane. I realize the SVN is a work in progress, and perhaps Michael hasn't gotten to the executable yet. So if rev1309 will support ch4 in Xplane, then I'll stick with that for now.

    Thanks,

    Nathaniel
  • Moderator
    Jason,

    Is this intended for rudder as primary control surface, with aileron slaved to rudder, or tthe other way around? Can Aileron be the primary control surface, with rudder slaved?

    BTW Great work the pace of development is astounding. I should be getting into the field in a week or two to start tuning and testing. The X-Plane mode is fantastic, I've had a great time testing functions in HIL simulation. Thanks also to Michael for the C# serial interface for X-plane.

    Nathaniel
  • Developer
    Great update, when do you sleep?

    I added my standard minor updates and it compiles!
    freeRAM call is sweet!

    but airspeed needs a fix in Sensors tab change, as a computed negative value causes errors
    //airspeed = sqrt((float)airpressure / AIRSPEED_RATIO);
    airspeed = sqrt(abs((float)airpressure / AIRSPEED_RATIO)); //mjc

    I added to Servos tab a minimal movement of servos in event of a power glitch in air, stopping at center of travel

    void demo_servos_air() // mjc short movement if power glitch or reset in Airvoid demo_servos()
    {
    //int temp = servo_out[CH_THROTTLE];
    //servo_out[CH_THROTTLE] = 0;
    no_throttle();
    delay(30);
    OCR1A = 1530 * 2; // mjc just a bit up
    OCR1B = 1530 * 2;
    delay(100);
    OCR1A = 1500 * 2;
    OCR1B = 1500 * 2;
    delay(200);
    OCR1A = 1470 * 2; // mjc just a bit down
    OCR1B = 1470 * 2;
    delay(100);
    OCR1A = 1500 * 2;
    OCR1B = 1500 * 2;
    set_servo_mux(false);
    delay(30);
    //servo_out[CH_THROTTLE] = temp;
    //update_throttle();

    }

    In System tab, add these line to use demo_servos_air:
    // Makes the servos move +- 3° three times, signals ready to fly //mjc
    // -----------------------
    demo_servos_air(); //mjc
    delay (400);
    demo_servos_air();
    delay (400);
    demo_servos_air();

    I also changed,
    // Makes the servos move +-45° twice on ground //mjc
    // -----------------------
    demo_servos();
    delay (1000); // mjc
    demo_servos(); // mjc

    While testing this release, I found a problem when,
    In FBW-B mode, CH-2 has no movement,
    Evelon mixing is on and airspeed sensor is enabled,

    In Manual mode servo movement seems coarse compared to "Stabilize and FBW-B modes?

    Thanks again, we will be able to troubleshoot faster now as we know when Memory is low.
  • Developer
    @Space_nut

    Yes, you can. It took some work, but I have a nice solution now.

    Pins 11 and 13 are the input. You can specify which input is the throttle (I would use 11 for throttle.)
    You may need to cut the line to the LED for pin 13, I know a lot of people have issue with that pin.

    CH4 Output is on Analog 4 - this pin wasn't being used. You'll need to connect this pin with a jumper to CH4 Mux In.

    Jason
  • Hey Jason,

    Does this mean I can get 4 channel control from the original Ardupilot board? I'll need to solder a few more jumpers then?
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: To get ground truth I measured the rug, found the pixel coordinates of its corners, calibrated my phone camera with my standard…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: @DIYRobocars is back in December, but outside. Time to reinvestigate ConeSLAM! I rigged up a quick and dirty ground-truth captur…
Nov 5
More…