Mavic Pro ATTI hack

Discussion in 'Mavic Pro Discussion' started by Bruce, Jun 21, 2019.

  1. Bruce SNCO

    Joined:
    Jun 14, 2019
    Messages:
    73
    Likes Received:
    36
    I have had occasion that required me to get my Mavic Pro home in ATTI mode after a loss of signal...and it's been a harrowing experience that, only with a lot of luck, I've managed NOT to crash/lose my drone. I came into the drone-world with NO flying experience whatsoever, unlike many of y'all who learned to fly (at great expense in many cases) without all the electronic "nannies" that actually do most of the flying now.

    I recently heard that it is possible to modify parameters that would enable my Mavic Pro to start and remain in ATTI mode so that I would be able to practice ATTI mode flying. I have a location with a VERY large field where I could practice with little likelihood of flying HORIZONTALLY into any obstacles.

    Anybody know how to hack our beloved Mavic Pro parameters in such a way that I can start in ATTI and quickly switch to GPS when I wanted?
     
    #1
  2. hactick NCO

    Joined:
    Jun 13, 2019
    Messages:
    34
    Likes Received:
    15
    I've seen it done on the mavic 2 but not sure about a mavic pro.
     
    #2
  3. Glhs958 NCO

    Joined:
    Jun 13, 2019
    Messages:
    10
    Likes Received:
    6
    Hey Bruce, This should get you going in ATTI mode.

    Download and install DJI Assistant 2 V1.1.2 so you can access debug mode.

    Once V1.1.2 is installed access the file Main.js which is likely in
    "C:\program files (x86)\DJI Product\DJI Assistant 2\ App files\Main.js"
    Open Notepad++ as administrator and navigate to Main.js and open.
    Search for this code at line #113 \\mainwindow.webcontents.opendevtools()
    Remove the \\ characters at the front of the code, and save the change. "remember must save in administrator mode"

    Now run DJI Assistant 2 V1.1.2
    look for >> in the upper right hand corner to the right of the word resources.
    click the >> then click Local Storage then File://

    change the value debug from 0 to 1
    then enable debug from false to true

    Then power up your Mavic and connect via USB to your computer. Click the your Mavic icon.

    Scroll down until you see the word parameters and click.
    Be careful to not change anything that you don't understand what it does.

    Atti mode (via sport mode button)
    Search for "g_config_control_mode"

    g_config_control_mode[1] (fswitch_selection_1) 8 = Sport mode default
    g_config_control_mode[2] (fswitch_selection_2) 7 = GPS mode default

    Changing either to 3 is ATTI so you can either change GPS mode or Sport mode position to ATTI mode.
     
    #3
    hactick likes this.
  4. Flycaster NCO

    Joined:
    Jun 26, 2019
    Messages:
    43
    Likes Received:
    23
    Easy Peasy...o_O
     
    #4
  5. Bruce SNCO

    Joined:
    Jun 14, 2019
    Messages:
    73
    Likes Received:
    36
    Hey glhs958 ...I'm sorry I just saw your post and instructions. THANK YOU!!
     
    #5
  6. Bruce SNCO

    Joined:
    Jun 14, 2019
    Messages:
    73
    Likes Received:
    36
    So...this looks like one can choose to Sport mode to switch the Mavic in or out of ATTI mode, correct?

    If I used the GPS Mode, the AC would start and remain in ATTI mode I presume. Is there a way, while in flight, to switch out of ATTI into GPS mode?
     
    #6
  7. Glhs958 NCO

    Joined:
    Jun 13, 2019
    Messages:
    10
    Likes Received:
    6
    Correct

    On the Mavic Pro not that I am aware of.
     
    #7
  8. Flycaster NCO

    Joined:
    Jun 26, 2019
    Messages:
    43
    Likes Received:
    23
    "I would be able to practice ATTI mode flying."

    The best (and safest that I've found) way to practice flying ATTI mode, is get one of those little Estes Proto X, or Dromedary drones. The Proto x you can fly in the house, while watching tv, and it won't cause any damage if you end up gacking it into something. The sucky part is looking for those itty bitty props if they pop off. This is better for indoors (wind ya know).

    The Dromedary drones are a bit bigger can handle some lite winds/breezes.

    This way your not putting your camera ship at risk during the learning/training phase of ATTI mode.

    But yes, it would be nice to be able to switch ATTI on/off like one could with the Phantoms???
     
    #8
  9. Bruce SNCO

    Joined:
    Jun 14, 2019
    Messages:
    73
    Likes Received:
    36
    I think I found an ATTI "hack" that's a lot safer for my Mavic Pro (thanks to Flycaster).

    I dug around in my "toy box" and found the Holy Stone HS 150 that I bought in order to learn whether or not I had any potential ability to fly a drone. Bought a couple of fresh batteries and now practice with that. Doesn't even have altitude mode...fully manual!

    One lesson I learned instantly! Most of us who fly a Mavic thinking we know how to fly...truly have NO IDEA.

    THANK YOU FLYCASTER!!
     
    #9
    Flycaster likes this.
  10. Camino Ken SNCO

    Joined:
    Jun 13, 2019
    Messages:
    66
    Likes Received:
    31
    I am ever grateful for GPS mode for without it I would not be flying. I tried a toy and failed miserably, ultimately tossed it in the trash. If If my Mavic 2 ever goes in to ATTI mode while I’m flying it there is no question what will happen ......... it’s going down!
     
    #10
  11. Flycaster NCO

    Joined:
    Jun 26, 2019
    Messages:
    43
    Likes Received:
    23
    How long did you try to fly "the toy"?
    At first, it is a bit squirrelly, but with some patience, in a day you can be at least trying to keep it one spot, with the nose out.
    You might have to trim it a bit to get it to hover in a stable attitude. Then just hover, keep it in one place. Up and down a bit too.
    Then just "baby" steps moving left to right, forward and back, then circles using 2 stick combined inputs, then figure 8's,
    And guess what?
    You're on your way to controlled manual flying, aka ATTI mode.

    It's well worth the effort. And "insurance" for your Mavic....
     
    #11
  12. Camino Ken SNCO

    Joined:
    Jun 13, 2019
    Messages:
    66
    Likes Received:
    31
    I not sure if I don’t have the skill or the patience or neither. I tried flying the toy, I believe it was a QX Nano, around 20 times over the span of a month. My biggest problem was determining which way it was pointing. I was constantly giving the opposite stick of what was needed and it would promptly run into a wall, TV, etc. I tried flying it outside but the wind would carry that sucker every which way. Bottom line, I got frustrated and threw it in the trash. I always tell people that my favorite feature of the Mavic 2 is its ability to park itself in the sky until I can think about which stick I need to push, and in what direction, to control it. I have only been flying drones for 7 months (not counting the toy) and am still try to master the flying aspect.
     
    #12
    Bruce likes this.
  13. Flycaster NCO

    Joined:
    Jun 26, 2019
    Messages:
    43
    Likes Received:
    23
    Yes, orientation is crucial/important.
    Try to make the front more visible on the toy/practice drone (red/yellow tape or something).
    Yes the smaller the "toy" drones, the more susceptible to wind/breezes/farts.
    The way I learned was I had earlier heli experience. Pretty much the same for drones, except we had no real flight controller at the time, just a gyro for the tail rotor. I flew my proto x in the house all the time during the commercials on tv. And if you gack it into the tv won't hurt it.
    Try just hovering the toy/practice drone, and just focus on keeping the orientation, (nose out) and in the same location.
    If it flies out of the "landing circle" (maybe 2 foot across) land it, pick it up and put it back in the circle. Once you can keep it in the circle, nose out, take off and land, then you can progress to the next step.
    Then start doing small smooth rolls to the left and right, always bringing it back to the landing circle. Go forward also, always bringing back to the landing circle. Once you can do that, then you can start with combined stick movements, circles, and figure 8's.

    The little Proto x's are a great training tool, if you can hover and fly that. you should be good to handle and ATTI flight when/if it pops up.

    Try an hour a day, before dinner/drinks. Trust me, it will come to you, first it's eye/hand coordination, then it becomes "motor memory". you will feel like you accomplished something. Guess what? You did!

    You can try this if you like:
    https://www.amazon.com/ESTES-4606-Proto-Nano-Quadcopter/dp/B00G924W98
     
    #13
  14. Camino Ken SNCO

    Joined:
    Jun 13, 2019
    Messages:
    66
    Likes Received:
    31
    I really appreciate all of your guidance and encouragement but unfortunately I don’t have the motivation or interest in flying a toy again. My Mavic 2 is all I need and will need. As I mentioned, if I ever lose GPS I will just stand there and watch it go down, and I am good with that.

    Thanks again.
     
    #14
  15. Bruce SNCO

    Joined:
    Jun 14, 2019
    Messages:
    73
    Likes Received:
    36
    Camino, you're talking my language. When I started with the "toy" I was having the same experience including frustration, impatience, and the simple fact that my brain has ALWAYS processed left-right terrible slow.

    My sister is a HPDE Instructor (high performance driving event) and is an amateur racer- drives a modified BMW. She signed me up for a weekend training in Virginia in September, 2011. Included 6 track sessions & 6 classroom sessions each day. At the beginning of my first left-seat driving experience, I said to my sister I was never so scared in all my life. My sister-instructor sitting in the right seat next to me said, "Neither have I!" LOL!! Anyway, the point of the story was my sister, in order to help guide me around the 20 turn, 3.5 mile road course, told me that when a turn was coming up she yell RIGHT or LEFT depending upon the direction of the upcoming turn (several of which were "blind" turns that came up very quickly at 100-plus MPH. I turned the ignition off and replied, "Sis, if we have to trust my response to your verbal command to turn RIGHT or LEFT in a split second...we're BOTH gonna DIE!"

    Well, she modified the command from verbal to a visual command...and the rest of the weekend is BEYOND explanation. WOW!!

    Back to the toy drone experience. I could NOT get it! Right-left-up-down-side-to-side-backwards-forwards...and totally could not conquer the orientation issue! I also remember not knowing what "headless mode" was! I was ready to give up after a couple of days...then I discovered "headless mode" and from that moment, I thought I'd become a PROFESSIONAL! Gave me the courage to pull he trigger on buying a bigger and better drone. Went to a Contixo F18 (which fell out of the sky into a lake because of a manufacturer defect in the battery) and replace that with the Mavic Pro.

    But, fact of the matter was...I STILL didn't know HOW to fly a drone like your supposed to. But, like you, because of the flight "nannies" I wa finally able to conquer the "orientation" issues and fly a pretty decent and smooth pattern...slowly...in all directions. I'll never overcome the snap-decision RIGHT/LEFT turn though.

    Bringing it all home, as I said at the beginning, I pulled the "toy" drone out of my toy box to retry "learning how to really fly". And not much has changed...still very frustrating. HOWEVER...there is one BIG difference SINCE flying the Mavic. I found that I, at 70 years old, am able to keep the thing in the air and control it's left and right, back and forth flight...without the "headless-mode "cheat"...in beginner mode! So long as I don't have to make snap decisions concerning left and right LOL! Maybe someday, when I grow up, I 'll be a REAL pilot LOL!
     
    #15
    Flycaster and Camino Ken like this.
  16. Camino Ken SNCO

    Joined:
    Jun 13, 2019
    Messages:
    66
    Likes Received:
    31
    Hi Bruce,

    BTW you can call me Ken, as long as you call me in time for dinner.

    Thanks for sharing your experience. Yes, your experience was similar to mine with a few exceptions. First, the toy I was flying didn’t have a headless mode, and second I threw it in the trash (not in my toy box). I can’t justify buying another one just to master ATTI mode (nor do I want to hack my Mavic). It’s just not worth it to me. I am similar to you in that I’m only two years behind you in the the life journey and it is getting harder to master new skills. It is why the Mavic 2 is a godsend. It is so easy to fly (in GPS mode) I don’t need to, nor want to, learn to fly manual. If GPS mode fails for some reason ......... Oh Well!

    Ken
     
    #16
  17. hactick NCO

    Joined:
    Jun 13, 2019
    Messages:
    34
    Likes Received:
    15
    Would a piece of metal tape placed over the area that house the gps receiver work to force atti mode?
     
    #17
  18. Camino Ken SNCO

    Joined:
    Jun 13, 2019
    Messages:
    66
    Likes Received:
    31
    It might, but it could also cause compass problems that would be catastrophic. Why don’t you try it and let us know. Wink, wink
     
    #18
  19. Bruce SNCO

    Joined:
    Jun 14, 2019
    Messages:
    73
    Likes Received:
    36
    I've seen YouTube videos of folks using aluminum foil to "foil" the GPS, and it apparently works. Because aluminum is not magnetic or ferrous it does not effect the compass.
     
    #19
    Camino Ken and Flycaster like this.
  20. Flycaster NCO

    Joined:
    Jun 26, 2019
    Messages:
    43
    Likes Received:
    23
    That does work, but just a few lines of code, would fix it.
    Competent code....
     
    #20

Share This Page