Moderator

First testflight UAV Seagull 2200

Yes the first testflight is over, and the seagull 2200 are still alive.I planed a small 5 waypoint route on a open area near Aalborg, Denmark.

After calibration on the FMA sensor I was ready to give it a try.After a little manual flight I pushed the auto button on my remote CH 5.. So far so good. The plane started making bit of rocking with the rudder - after a sec or two the plane gets stabel and just holding the course... hmmm.. Not navigating as it surpose to do. I tried about 5 times to se if there are any sign of showing just a little navigation for the first waypoint. But just a straight path.

So what might be the problem?If I try "flying by wire" without the gps I have one very weak control over the rudder and elev.Anybody out there! anybody.. :-(Here is the function on the board... It looks right to me.
E-mail me when people leave their comments –

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

Join diydrones

Comments

  • Moderator
    I got it.. thanks alot for helping out here.
  • Moderator
    Ok! I think I understand what you both meens.

    Clayton please show me how my Waypoints should be. Evt. copy/past the test I used.
  • Clayton is right.
    Notice that the comment in your waypoint tab states:
    //0.000009 degrees is about 1 meter...
    Your first waypoint adds 57.082534 degrees to lat.
    Thats a lot of meters!!
  • Moderator
    I need a deeper explanation!

    void setup_waypoints(void)
    {
    //0.000009 degrees is about 1 meter...

    wp_alt[0]=50;
    wp_lat[0]=0;
    wp_lon[0]=0;

    wp_alt[1]=50;
    wp_lat[1]=wp_lat[0]+57.082534; //1
    wp_lon[1]=wp_lon[0]+9.940846;

    wp_alt[2]=50;
    wp_lat[2]=wp_lat[0]+57.081286; //2
    wp_lon[2]=wp_lon[0]+9.941318;
  • 3D Robotics
    The FMA calibration is stored in non-volatile EEPROM. It will not be erased when you reset the board.
  • Moderator
    Yes Chris you are right about i'm not having a three-position toggle switch. I have a JR MX 12 TX so I use the Throttle hold switch (only on and off).

    Bryan I can see your idear, but if I press the reset button before launch, will the calibration FMA not be damage?
  • Chris,
    I think he is using 2.0.
    Hooks,
    The code is optimized for the Easystar so there is going to be some tweeking to get another airframe flying WP or RTL. Before you relaunch, switch to RTL or WP to make sure it activates. If it doesn't, press the reset button.I do this test every time now before I launch. I frequently have to press the reset button, otherwise I experience the same thing you did. I would suggest walking the plane around while in RTL to make sure it steers you back to home. Then try flying under RTL first to see what the plane is doing. Fly downwind around 1000' away, turn around into a heading not more than 45 deg away from home and switch to RTL. Does plane aim towards you? Does it pitch up or down to fly at right altitude? Does it finally stabilize?
  • 3D Robotics
    I'm going to make a few assumptions:

    1) You don't have a three-position toggle switch on your Tx
    2) You're using the 2.0.1 code

    If that's the case, the code defaults to RTL mode in the "up" position of the toggle switch, not Waypoint mode.

    To switch the up position to Waypoint mode, you've got to change the code in the "System" tab. If you're using 2.0.1, it looks like this:
    ----------
    byte Tx_Switch_Status(void) //Return zero when we are in manual mode, return 2 when autopilot mode 0, return 3 when autopilot mode 1...
    {
    if(digitalRead(4)==HIGH)
    {
    if(digitalRead(5)==HIGH)
    return 0x02; // WP mode
    else
    return 0x03; // RTL mode
    }
    else
    return 0x00;
    }
    ------------
    Turn that into the following to default to Waypoint mode:

    -----------
    byte Tx_Switch_Status(void) //Return zero when we are in manual mode, return 2 when autopilot mode 0, return 3 when autopilot mode 1...
    {
    if(digitalRead(4)==HIGH)
    {
    if(digitalRead(5)==HIGH)
    return 0x03; // WP mode
    else
    return 0x02; // RTL mode
    }
    else
    return 0x00;
    }
  • Moderator
    Well, its not all bad at least its in one piece!
This reply was deleted.