iNav Drone Complete Tutorial - Part 6 - Calibrate Compass and Accelerometer

Sdílet
Vložit
  • čas přidán 21. 08. 2024
  • Uncertain about what to buy? Check out THE ULTIMATE FPV SHOPPING LIST: www.fpvknowita...
    SUPPORT ME ON PATREON at: bit.ly/2Ep5Sia
    THIS IS MY FULL TIME JOB. Here are other ways that you can support me: www.fpvknowita...
    ---
    I'm going to show you every single step of how to build this $120 FPV Drone. This is my complete beginner guide, with all the steps, and all the background information you need to know. Don't think of this as just a how-to guide. I want it to be a complete introductory course to teach you the things you need to know to build FPV drones.
    Watch the full playlist at: • Beginner Guide $120 FP...
    -- PRODUCT LINKS --
    I receive a commission (at no extra cost to you) if you make a purchase after clicking one of the affiliate links below.
    Purchase the Eachine Tyro119 at:
    * RaceDayQuads - bit.ly/3i8G8Hk
    * Banggood - bit.ly/39czE5o
    The Tyro129 is the exact same quad but with 7" props. If you're interested more in cruising and less in freestyle or racing, the 129 may be a better choice.
    * Banggood - bit.ly/3aQWKPO
    Purchase the BN-880 GPS module with compass at:
    * RaceDayQuads - bit.ly/3bLgd5O
    * Banggood - bit.ly/2xhfOJo
    * Amazon - amzn.to/2zAfLsU
    Purchase the Jumper T16 MultiProtocol Radio Transmitter at:
    * Newbeedrone - bit.ly/2OeWulz
    * AliExpress - bit.ly/2MdrIaL
    * Hobbycool - bit.ly/2ULMnsO
    * Amazon - amzn.to/2D6v3EV
    * Pyro-Drone - bit.ly/2Ko2RmI
    * Grayson Hobby - bit.ly/324kNaF
    Purchase the Jumper R1 receiver at:
    * GetFPV - bit.ly/394GDxi
    * Grayson Hobby - bit.ly/3alXhd2
    * Banggood - bit.ly/3alFR0x
    MANDATORY DISCLAIMER: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for me to earn fees by linking to Amazon.com and affiliated sites.
    Most or all links above are affiliate links, and I will receive compensation if you use them.

Komentáře • 80

  • @JoshuaBardwell
    @JoshuaBardwell  Před 4 lety +19

    Massive thanks to Pawel Spychalski and Painless360, without whose YT tutorials, I wouldn't have been able to get through this.
    czcams.com/channels/mX3OXToMBKTppgRskDzpsw.html
    czcams.com/channels/p1vASX-fg959vRc1xowqpw.html

  • @itsmatthijs
    @itsmatthijs Před 4 lety +9

    Finally! Someone explaining the compass calibration in an understandable way

  • @wdfwgagyfgagyga
    @wdfwgagyfgagyga Před 4 lety +17

    1. your voice is soothing to listen to
    2. you explain everything in you videos to great detail
    3. whenever i search for a guide or something about drones you pop up.
    4. please keep doing this!

  • @klaviantsigetur3027
    @klaviantsigetur3027 Před 3 lety +1

    I have written a short guide for iNav compass calibration in another forum, in case someone needs some more advanced tips, mainly if you mount your GPS/compass tilted or not facing arrow forward:
    step 1. Find out how the magnetometer sensor is oriented on your board from manufacturer. For example I have M8Q-5883 GPS with magnetometer from Matek, where magnetometer (compass) is mounted CW270FLIP. Let's remember that.
    step 2. So in general you would only need to set mag alignment CW270FLIP in Configuration tab / Board and sensor alignment in iNav configurator. But this is only the case if you mount your GPS/compass board flat and arrow facing forward! But let's say you mounted it with arrow facing backward, and you tilted it 30 degrees backward (because you want to have the best GPS reception when flying your quad forward pitched 30 degrees). In this case, change mag alignment to CW0, and you need to go to CLI, and set align_mag_roll, align_mag_pitch, align_mag_yaw.
    In other words, when iNav detects you have some values in align_mag_xxx variables, it will ignore mag alignment value!
    For our case, we need to combine both CW270FLIP sensor orientation and our mounting position.
    CW270FLIP is:
    align_mag_pitch = 1800 and align_mag_yaw = 2700
    combined with our mounting position (arrow facing backward and 30 degree tilt backward)
    align_mag_roll=300
    align_mag_pitch=1800
    align_mag_yaw=900
    save
    step 3. Put heading into your OSD, so you can see it in your goggles. Go outside with your goggles, transmitter and quad, some distance from buildings, and metal things. Turn on the transmitter, plug-in your battery into your quad and turn on goggles. Issue stick command throttle up+yaw right+pitch down (and hold it for 1 second!). Your FC board should start blinking and in your goggles heading will display ---, signaling that compass calibration is in progress. You have 30 seconds, or whatever value you put to mag_calibration_time variable, to calibrate your compass. Rotate your quad around each axis 360 degrees, take your time.
    When calibration is done (FC stops blinking, and heading in your goggles displays some number), point approximately north with the nose of your quad. The heading should show 0 degrees. Turn east, heading should display 90 degrees, south 180, west 270. Then pitch quad's nose down 45 degrees and do the same, the heading should again display 0 (north), 90 (east), 180 (south), 270 (west). Now flip your quad upside-down, and do the same heading test. If in any of the above your heading is crap, you didn't set the correct values to align_mag_xxx variables. Re-set them and try again.
    Hope this guide helps you! Happy flying.

  • @Ryet9
    @Ryet9 Před 3 lety +1

    DJI Dance 9:05 (Calibrate Magnetometer)
    Sticks - Mode 2: ↗ + ↓
    Thanks, memorized - Super helpfull 💗

  • @kimbelldify
    @kimbelldify Před 2 lety

    Looks like im in good company here, I finished assembling my quad last night and thought "I'll just take it out for a quick PosHold test" HA! quad took off like a ballistic missile , pause for a hover at about 100 feet altitude, meanwhile I seemed to be locked out of my controls.. I shut the transmitter down with pwr off and the quad started heading south... I found it about 30mins later busted up on the paved road. It will make a good parts doner for my second build ;-) Thanks for all the help Josh! If I had watched this video insead of rushing off to test my quad last night....

  • @sprytnyfpvfreestyle5263

    I love your job and thank you for your contribution to teaching and promoting our hobby. Paweł Spychalski is our Polish counterpart to you JB. But he feels best at INAV. He is also my second guru. My two masters.

  • @jeremiahulishney5322
    @jeremiahulishney5322 Před 4 lety +1

    That position hold issue is what happen to me a month ago on my 3rd 7in iNav build. Mine started toilet bowling small circles into even bigger circles. I was using a Matek GPS and compass and I had it at CW 270 degrees instead of the CW 270 flip. Sometimes it’s the easiest things to fix that causes headaches.

  • @fpvrc9829
    @fpvrc9829 Před 4 lety +8

    I use my phones compass, and compare that with the heading in osd, checking every 90°

    • @tedhancock68
      @tedhancock68 Před 4 lety +1

      I also used my iPhone (and area knowledge). Still couldn't get it right until I searched exhaustively through CZcams. Found one lonely video demonstrating this issue. In the comments, someone said their BN-880 needed to be CW 270 flip. They thought that was weird. Mine worked once I set to CW 270 flip. Apparently it's not weird. It appears to be the default factory setting now. Why don't we hear more about this?!? Like in the product description maybe?!?

    • @BryonGaskin
      @BryonGaskin Před 3 lety +2

      @@tedhancock68 Same here. I used my phone, downloaded compass app. Matched up the compass on the app to the compass on the BN880. I followed Bardwell's instructions from the mounting direction to the CW270 flip, and check the compass direction in the OSD all at my desk and it worked like a charm. I guess direction and orientation stamping on the GPS or at least something in the instructions was not in the budget for the GPS MFG.

  • @prateekchauhan3104
    @prateekchauhan3104 Před 11 měsíci

    NEED TO LEARN THAT DJI DANCE FOR SURE...

  • @samdrone83
    @samdrone83 Před 3 lety

    If I were to use Joshua's fav word to describe this video: 'FREAKING' useful 👍👏

  • @GeorgeCooper_LoneWolf
    @GeorgeCooper_LoneWolf Před 4 lety

    You did the DJI dance wrong. You have to ware a silly hat at the same time lol That brought back memories. Nice job JB, Great tip in the OSD about setting North point.

  • @alanwood1592
    @alanwood1592 Před 3 lety

    Well I certainly learnt something, I now know what CW flip means. Turn out my arrow is fibbing also, 90° off, makes RTH exciting. Many thanks.

  • @AEMBowers
    @AEMBowers Před 2 lety

    I've got the weirdest situation going on. I just received an RTF quad from GetFPV. In the configurations tab on Betaflight (BF), it has the flight control (FC) set at 0 roll, 0 pitch, and 0 yaw. However, the gyro is set at CW 180. At the same time, I can see that the FC has physicallyt been rotated 180 upon install (the arrow points toward the tail of the quad). Based on JB's instructions in the video, the settings in BF's configuration tab should instead be: gyro set to 0 degrees, while the yaw for the flight controller is set to 180 degrees (I put -180, since I assume this corresponds to CW--it might matter for the math, as you'll see below). With either setup, physical movement of the quad matches that shown in Betaflight's Setup tab. This makes sense to me, and I will change it to how JB recommends. The issue is that I would now like to install a Matek M8Q-5883 GPS w/ compass. The manual for this GPS states that, if the arrow of the GPS points in the same direction as that of the flight controller, the Mag alignment in Betaflight's configuration tab should read CW 270 flip. For the best mounting and cable running for my GPS, I do in fact want the arrow on the GPS to face the same as that of the flight controller. However, the FC was mounted CW 180 as previously mentioned. So, do I need to input a mag alignment reading of CW 270 flip + CW 180 = CW 450 flip or, in other words, CW 90 flip? I realize that I can test this, but I won't have the ability to for a few weeks, and I'd simply like to know the theory in any case. I gues the pivotal question is: Is the rotational setting for the GPS module relative to the nose of the quad, or is it relative to the direction that the arrow on the FC points (the manual for the GPS suggests the latter)?

  • @rolosaenz
    @rolosaenz Před 4 lety

    Superb work as always Joshua, thanks for your time!

  • @bobp5776
    @bobp5776 Před 4 lety

    Someone in the electronics hobby realm discovered that some of the connector pins mounted on the compass moduals are "magnetic" and screws em up. Might what to check that. Great Vids .

  • @rscottwilson1
    @rscottwilson1 Před 3 lety

    Very helpful. Thanks!

  • @paulg5437
    @paulg5437 Před 4 lety +1

    Joshua, maybe you should just hold up a flash card at the beginning to save your voice and mind 🙂

  • @johnhall2146
    @johnhall2146 Před 4 lety +1

    13:17 I've got the coordinates where u live. I've typed it to my attack drones. u won't get away!

  • @MrPlogibear
    @MrPlogibear Před 4 lety

    +1 OSD indicator for Compass Calibration. Its way safer to calibrate before flying. There is a reason why DJI quads requires it.

  • @offaxisfpv
    @offaxisfpv Před rokem

    very helpful

  • @flibri5508
    @flibri5508 Před 4 lety +1

    i'll remember to use my drone as a dance partner

  • @75bikes96
    @75bikes96 Před 4 lety

    Bravo vecio!

  • @libor-vitek
    @libor-vitek Před 4 lety

    JB, cool as usual. Espec. the trick how to check that orientation of mag is correct. 👍Figured out by yourself or Pawel? 😉 Seriously: such simple and effective thing shall be incorporated into INAV documentation instead of tons of useless crap which is there now regarding mag calibration. Hat down my friend, keep going! 👏

    • @JoshuaBardwell
      @JoshuaBardwell  Před 4 lety

      I figured it out myself. It just seemed obvious.

    • @libor-vitek
      @libor-vitek Před 4 lety

      @@JoshuaBardwell You are blessed, no question about it :)

  • @bleeksbentbits3150
    @bleeksbentbits3150 Před 3 lety

    Calibrate Compass is where Im having troubles, stick commands are just not doing it....
    I can think of one or two reasons & don't know a work-around, so currently composing an Email for you- just thought I'd give a heads up....
    Thanks for all your help, in advance as well as in the past....

  • @takeoogami
    @takeoogami Před 4 lety

    Very cool thank Joshua

  • @fishfinder3583
    @fishfinder3583 Před 4 lety

    Oh man I've stuck trying to get my INAV rig going. It's the Matek f722-se clocked +270 with the holybro M8N Micro. The model flips out when I hit nav hold also in betaflight too.

  • @mikesullivan5851
    @mikesullivan5851 Před 3 lety

    Nicole said hi

  • @embededfabrication4482

    dont you also have to fine tune the accelerometer offsets to get a steady position hold?

  • @amax2624
    @amax2624 Před 4 lety +1

    I calibrate my magnetometer only once on season start.....it never failed.

  • @MindOfBoomBoom
    @MindOfBoomBoom Před 4 lety

    its funny to see the progression of beard growth thru these videos, Hahahahahahahahaa

  • @embededfabrication4482

    so you don't have to do anything after the calibration procedure in the field 30 seconds elapses, it saves it to the FC on it's own?
    I can't get a beep or a change in FC blinking with the stick commands
    never mind, I had to center my trims, have to make sure the outputs go to max and mins to get stick controls to work.....duh

  • @nihilisticone4215
    @nihilisticone4215 Před 4 lety

    @JB, now that you've ventured into the world of iNAV, I'm curious what your take will be on free styling 5" quads in iNAV with the probably more reliable RTH, vs. BetaFlight and GPS rescue. How reliable would either be when a lot of flipping and rolling is happening, and the GPS lock might be in doubt?

  • @mike_oe
    @mike_oe Před 3 lety

    Re: Compass orientation. Could we also use the heading indicator in the iNav Configurator to check the heading is correct?

  • @NguyenDongArtist
    @NguyenDongArtist Před 2 lety

    Does Betaflight use the exact same stick commands as iNav to calibrate the compass? I also read that we need to use the save settings stick commands after calibration. Is this correct? Does calibrating the compass make gps rescue return to home perform more accurately? Or is it hard to tell?

  • @juancarlosoanelli9626
    @juancarlosoanelli9626 Před 3 lety

    Friend, mine calibrated begins to circle in pos hold

  • @kszyh_
    @kszyh_ Před 4 lety

    I'm looking forward to see RTH and some mission planning. I tried it myself, but with the RTH quadcopter, came back to me and then instead of landing it flew into space. Can we somehow isolate that GPS on the frame somehow? The arm is a good place but compass started freaking out.

  • @divingfalconfpv4602
    @divingfalconfpv4602 Před 3 lety

    Matek M8Q-5883 has plug on the back away from drone. If i mount the gps with arrow facing backwards to have plug come right out to drone. I can just change direction in flight controller to like CW 90?

  • @kymcainday6677
    @kymcainday6677 Před 2 lety

    Hi Joshua! My FC board doesn't have i2c port. I am thinking of connecting my magnetometer via uart port using arduino nano as i2c to uart converter, but on the "port" tab I can't find options to allow magnetometer using the available uarts. Hoping you have an option for this aside from buying a new FC, haha.. Thanks a lot. I love your tutorials..

    • @JoshuaBardwell
      @JoshuaBardwell  Před 2 lety +1

      You should check with the iNav dev whether that option is supported in their drivers. I think iNav requires you to have an i2c based compass or they won't support the FC though.

    • @kymcainday6677
      @kymcainday6677 Před 2 lety

      @@JoshuaBardwell okay. I'll try to reach them.. Now I'm having a feeling of switching back to betaflight and build a new one for inav.. Thanks

  • @user-eg7ed4wt9p
    @user-eg7ed4wt9p Před 10 měsíci

    I cant calibrate my drone, its upside down in the inav set up window, when I do the calibration the first step it calibrates it in the step 2 window and when i flip the drone over it calibrates as if sitting flat, it also does left right and up is down. How do I fix this?

  • @arycave
    @arycave Před 4 lety

    How to know if you calibrated it? Simple. Mine just would not arm and yell the reason in OSD.

  • @hanzalapatel703
    @hanzalapatel703 Před 4 lety

    inav 2.5 is out

  • @ipanda3054
    @ipanda3054 Před 3 lety

    my motors continue too beep every time i plug in the lipo and i dont know how to make them stop help me pls

  • @divingfalconfpv4602
    @divingfalconfpv4602 Před 3 lety

    DJI doesn't show heading does it?

  • @sphaxbm1167
    @sphaxbm1167 Před 4 lety +1

    hi joshua , i have a question , can i shorten the cables on a lipo ?

    • @pickinfun6941
      @pickinfun6941 Před 4 lety +1

      You don't need him for that answer, yes you can. Cut them down and put on a new connector, remember to only do one lead at a time to minimize the chances of shorting the battery.

    • @sphaxbm1167
      @sphaxbm1167 Před 4 lety +2

      @@pickinfun6941 thank you so much

    • @fpvrc9829
      @fpvrc9829 Před 4 lety +1

      I can... If your not 100% comfortable with a soldiering iron, don't try this, it could end badly

    • @libor-vitek
      @libor-vitek Před 4 lety +2

      Shorter cable = better performance.

  • @Jonathan-abcdef
    @Jonathan-abcdef Před 3 lety

    Hi Joshua! thanks for the tutorial videos, May I know how was the in-house microphone of the fpv cam activated? i think my audio is grounded. I tried troubleshooting by plugging the *audio of fpv cam to the S6 of the flight controller terminal but no good audio comes out. thanks!

    • @JoshuaBardwell
      @JoshuaBardwell  Před 3 lety

      You would need to connect Audio of the cam to the Audio or Mic input of the vTX. I can't remember off hand whether this vTX has a mic input though.

  • @suzansarasrinirazendrarais2810

    Is that tyro?

  • @geraldbarilaro6997
    @geraldbarilaro6997 Před 3 lety

    Hello and thank you for this video. On the other hand, I fly in mode 1. Do you know what stick position I have to do for the calibration of the compass? Thank you.
    Inav 3.0

    • @JoshuaBardwell
      @JoshuaBardwell  Před 3 lety +1

      It's the same movement in throttle yaw pitch roll just wherever they are for your sticks.

    • @geraldbarilaro6997
      @geraldbarilaro6997 Před 3 lety

      @@JoshuaBardwell OK thx for your fast response 😜

  • @jellifpv735
    @jellifpv735 Před 4 lety +1

    Lets GOO i got the 27th COMMENT!!!!!!!!!!

  • @pabloroberto8343
    @pabloroberto8343 Před 4 lety

    Hello

  • @gaartkaart6918
    @gaartkaart6918 Před 4 lety

    where should i connect my battery, i have an fc with a built-in pdb, and a 4-in-1 esc. i can't find a clear answer. can someone please help?

    • @arycave
      @arycave Před 4 lety

      Look into Matek F722SE manual it has options for this scenario (you don't have to be on F722 FC). I personally just paralleled 4-in-one and FC providing Y splitted branches to each one. even put to capacitors on them.

  • @ryanwilliamsfpv968
    @ryanwilliamsfpv968 Před 4 lety

    Every time I try to use the stick command for calibration of compass, I get no light confirmation on the FC that shows it’s working. Any ideas what is wrong or what I’m doing wrong?

    • @JoshuaBardwell
      @JoshuaBardwell  Před 4 lety +1

      Make sure your endpoints are correct. If the stick does not go all the way to 2000 then the FC won't pick up the stick command.

    • @ryanwilliamsfpv968
      @ryanwilliamsfpv968 Před 4 lety

      That’s what it was. Thank you for your help, your the best!

  • @runee7437
    @runee7437 Před 4 lety

    Wow, early

  • @srossi88
    @srossi88 Před 4 lety

    @josh you should have taken some sort of break in between shoots, your voice started to go :(

  • @marcelopereiradeoliveira6358

    it makes no sense to put a drawing that indicates the correct position for installing the gps, if it is wrong, these gps manufacturers want to drive us crazy

    • @tedhancock68
      @tedhancock68 Před 4 lety

      Apparently this has been the BN-880 factory default for about 3 years.
      czcams.com/video/WO7j5IANHeo/video.html

  • @funwithjpie5699
    @funwithjpie5699 Před 4 lety

    Hey Joshua I sent you a DM on Instagram under @Johnpaulishac if you could check that out

    • @JoshuaBardwell
      @JoshuaBardwell  Před 4 lety +1

      Instagram messaging is impossible to keep up with, because replies to Stories are intermingled with actual DM's. At any given time, I have between 100 and 500 DM's in my "inbox" and there is no way to tell which ones are just people giving a Story a thumbs up, and which ones are people actually trying to talk to me. Please contact me via FB messenger or email joshuabardwell@gmail.com.

    • @funwithjpie5699
      @funwithjpie5699 Před 4 lety

      Joshua Bardwell Alright thanks for the heads up, I sent a message via email.

  • @jessestridge5708
    @jessestridge5708 Před 4 lety

    You really, really, should be calibrating compasses outside, as far away from metal as possible. That includes rebar in concrete.

    • @JoshuaBardwell
      @JoshuaBardwell  Před 4 lety +1

      That's what I say in the video, right? I say that....

    • @jessestridge5708
      @jessestridge5708 Před 4 lety

      @@JoshuaBardwell That requires me to actually watch videos before I comment on them.