Hi everyone! I am new to my APM 2.6 and have been doing some simple flights with an Ansley Peace Drone to learn my way around the technology. I am trying to configure/tune the APM, but am not currently using an airspeed sensor, and can't figure out how the APM handles airspeed in this case. I've found very little online.

First, I am wondering how the APM uses the ARSPD_FBW_MIN and ARSPD_FBW_MAX parameters in the absence of an airspeed sensor. Does it use these parameters, and if so, does it have an algorithm for estimating airspeed?

Second, I am not sure the flying characteristics of my plane, and am trying to determine its range of flying airspeeds from telemetry logs of a MANUAL flight (so I can set ARSPD_FBW_MIN and ARSPD_FBW_MAX). Can anyone tell me what the APM is actually measuring in the "airspeed" field? I can't decipher the plot below. I was flying racetracks around the pattern in strong winds, but as you can see in the plot, airspeed consistently indicates well above groundspeed for the entire duration of the flight.

Thanks!

Mark

3691136564?profile=original

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

Join diydrones

Email me when people reply –

Replies

  • You have knower the method about apm2.6 airspeed without airspeed sensor?
  • To close this discussion out, I finally figured out was causing the strange airspeed readings. I had ARSPD_ENABLE set, despite not having an airspeed sensor installed. I have no idea why that would lead to these high ghost readings, but when I disabled that parameter, they went away.

  • I've been doing more testing, trying to figure out what vfr_hud airspeed is actually indicating with no airspeed sensor installed. The attached plot shows three engine runs on the bench, with the airplane fixed in place. As you can see, vfr_hud airspeed is not actually indicating airspeed, but is somehow linked to throttle movement.

    Can anyone tell me if this is a bug or a confusing feature? If a bug, how should I be reporting it?

    3701785553?profile=original

  • Thank you for the replies, as these are quite helpful! However, I still don't understand the numbers indicated in the log file. Groundspeed oscillates between 10-20 m/s, which makes sense given that I was flying patterns in wind. If the groundspeed is accurate, then airspeed should be somewhere around 15 m/s. Instead, the log shows an airspeed almost consistently above groundspeed, with peaks of 50-70 m/s. It's hard to see how these numbers are anything but garbage. Am I missing something?

    Actually, now that I'm staring at this plot again, a light bulb just went on... I noticed earlier in the log that "throttle" indicated zero the entire flight. Is the APM reporting a throttle percentage setting in the airspeed_vfr_hud_t field instead? That is almost what the plot looks like.

    • T3

      Mark,

      Your plots do not make any sense to me, either.

      Hopefully someone from the APM community can help you.

      Best regards,

      Bill

  • The only way that I have found to change the average cruise speed is using elevator trim and cruise throttle. I have several airplanes with no airspeed sensors and they fly amazingly well. The latest firmware does an excellent job of computing airspeed so I fond no need to go to the complexity of using and tuning an airspeed sensor.

     

    I have also found that the min and max parameters do nothing.

     

    .

  • T3

    Mark,

    Early versions APM used the direction cosine matrix and this method.

    The basic idea is that when a fixed wing aircraft turns, the magnitude of the change in IMU velocity vector is equal to the magnitude of the air speed vector times the magnitude of the change of the column of the direction cosine matrix that represents the fuselage axis as seen in the earth frame of reference.

    The original version of the algorithm used GPS velocity. The latest version uses IMU velocity.

    Recently the APM community has implemented extended Kalman filtering, I am not sure what method is being used in that case.

    Best regards,

    Bill

  • This is referred to in the aviation business as PFM, Pure F'ing Magic.
    The magicians (Tridge and Paul) use accelerometers to calculate the approximate wind velocity. It's amazing how well it works, although an airspeeds sensor is certainly much better.
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…