Pixhawk Flyaway

Unfortunately, I lost my plane today, I uploaded a mission to the pixhawk using droidplanner2, used an auto-takeoff, it launched just fine, climbed to the target altitude, but instead of turning for the first waypoint located to the southeast, it turned due north and continued straight and level, then I realized I had a serious problem and immediately changed to RTL mode which the tlog confirmed, but it didn't turn at all and continued on a due north heading, then I lost RSSI and telemetry shortly after, but because RTL failed to work, the failsafes didn't do any good after both comms were lost.

Another thing I don't understand is after reviewing the tlog, the direct-to bearing for the home waypoint was correct the whole time, but it simply refused to turn for home.

I've attached the tlog, if anyone can give any insight as to the cause I would greatly appreciate it.

2015-05-31%2012-06-32.tlog

I'm running the most up-to-date arduplane software, a pixhawk+ublox GPS, a pair of 3DR telemetry radios, Taranis handset, Mission Planner for creating missions, and droidplanner 2 for ground station and transferring missions to pixhawk.

Thanks,

Jeff

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

Join diydrones

Email me when people reply –

Replies

  • Jeff, I think I found the cause of your flyway. The curious thing about your log file is that the autopilot never commanded a roll change, even though the navigation controller was apparently tracking the correct waypoints (and, as you noted, engaged RTL). I wondered what would cause the commanded roll to stay near zero, and suspected it might be a tuning issue. When I reviewed these parameters, I noticed that you have LIM_ROLL_CD set to 45. This parameter is actually measured in centidegrees, so the Pixhawk refused to command a roll more than 0.45 degrees--effectively zero. That parameter should have been set to 4500.

    I'm sorry for the loss of your plane. I had a flyaway of my own once, so I know the experience.

    • Mark, I posted this issue on the ArduPlane forum also, and one of the developers(Tridge) reviewed the log and stated it was indeed a units issue that caused this.   I was thinking of increasing the roll limit, but then decided to change it back and keyed-in "45" instead of "4500" because I didn't realize the units were centidegrees, and yes that's what prevented it from turning even when in RTL mode.   Tridge stated that they will add valid min max limits or a failsafe check to prevent this from happening to others, and needless to say, I'm going to be extra careful with units when making any adjustments in the future!

      - Jeff

      • Oops, I missed that other thread, but I'm glad you got your answer.

        I'm glad Tridge is adding parameter checking on this. I've always felt like this was an accident waiting to happen, especially since this parameter is expressed in degrees on one page of Mission Planner and in centidegrees on a different page.

    • Hi Mark,

      I'm just going to learn from reading such logs. Can you explain why at the beginning of AUTO a much larger roll was possible?

      thanks
      Wolfgang R.

      • Wolfgang, sure, no problem! When you're reviewing a log, be sure to to look at both:

        1. What the plane is actually doing (roll and pitch, for example)

        2. What the autopilot is commanding the plane to do (nav_roll and nav_pitch, for example)

        In this case, #1 shows that the plane has a slight wing rock on takeoff (around 13 degrees max). However, #2 shows that the autopilot was commanding a zero-degree bank angle at the time. If you look at the attached plot of both 'roll' and 'nav_roll', you will see that nav_roll only changes from zero a little later, and then it only commands the maximum roll of 0.45 degrees. 

        I hope that helps!

        Mark

        flyaway_roll.PNG

        • sorry, did not get it that LIM_ROLL_CD works on nav

          thanks for the explanation
          Wolfgang R.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: Did I get rid of hand-tuned parameters? Yes. Am I still hand-tuning more parameters? Also yes. I have a few knobs to address the…
yesterday
DIY Robocars via Twitter
RT @a1k0n: I'm not going to spoil it, but (after charging the battery) this works way better than it has any right to. The car is now faste…
yesterday
DIY Robocars via Twitter
RT @a1k0n: Decided to just see what happens if I run the sim-trained neural net on the car, with some safety rails around max throttle slew…
yesterday
DIY Robocars via Twitter
Saturday
DIY Robocars via Twitter
RT @SmallpixelCar: @a1k0n @diyrobocars I learned from this. This is my speed profile. Looks like I am too conservative on the right side of…
Saturday
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars Dot color is speed; brighter is faster. Yeah, it has less room to explore in the tighter part, and t…
Saturday
DIY Robocars via Twitter
RT @a1k0n: I'm gonna try to do proper offline reinforcement learning for @diyrobocars and throw away all my manual parameter tuning for the…
Friday
DIY Robocars via Twitter
RT @circuitlaunch: DIY Robocars & Brazilian BBQ - Sat 10/1. Our track combines hairpin curves with an intersection for max danger. Take tha…
Thursday
DIY Robocars via Twitter
RT @SmallpixelCar: Had an great test today on @RAMS_RC_Club track. However the car starts to drift at 40mph. Some experts recommended to ch…
Sep 11
DIY Robocars via Twitter
RT @gclue_akira: 世界最速 チームtamiyaのaiカー https://t.co/1Qq2zOeftG
Sep 10
DIY Robocars via Twitter
RT @DanielChiaJH: Always a good time working on my @diyrobocars car at @circuitlaunch. Still got some work to do if I’m to beat @a1k0n howe…
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: My new speed profile for @RAMS_RC_Club track https://t.co/RtLb7TcgIJ
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: Practiced at @RAMS_RC_Club today with my new @ARRMARC car https://t.co/AEu2hCx89T
Aug 28
DIY Robocars via Twitter
Aug 24
DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
More…