o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.53k stars 422 forks source link

How to change the flight behavior #15

Open notsolowki opened 7 years ago

notsolowki commented 7 years ago

i figured it out, and crashed too :+1: i set some values low and it took off on if own so i hit the csc and broke most of its fall ,i was only 15 ft in the air whe i realized it wouldnt go down without the csc only need a new top shell but its still flyable. anyways i found out hot to get the app to push the commands. the only app i could get it to work with was 2.4.2. all you have to do is edit the flight controller parameters and mobile flc accordingly. factory reset and there they are.

notsolowki commented 7 years ago

dont change any _basic.craft thrust or control.thrust . they are gain settings setting them higher will make it really unstable

notsolowki commented 7 years ago

the esc i think still governs the rpm. so you cant get too crazy. you should hold your drone down and test your settings as much as you can before loosing it in the air. youll prolly notice maximum motor speed reached

chazzzzz commented 7 years ago

How do you edit the apk? or can you direct me to the thread that explains this? Also is there anything there to edit RTH speed...Its really all I need...

notsolowki commented 7 years ago

i havnt change the rth speed. i use apk editor pro its really easy

notsolowki commented 7 years ago

you will find a flyc_param_infos inside the dji go app. its under /res/raw/flyc_param_infos

notsolowki commented 7 years ago

i think theres some setting related to the current of the battery that limit the up velocity. not the settings for low battery but something else. i get 27 mph "up" on a full battery and like 22 on a half to 3qtr

notsolowki commented 7 years ago

okay i descended like 30 times at 18 mph with no issues just give it room to stop lol

notsolowki commented 7 years ago

some how earlier i was ascending at 27mph now i get a constant 22.4 mph

notsolowki commented 7 years ago

@mefistotelis have you managed to change the pitch or get past 22.4 mph ascend speeds?????

mefistotelis commented 7 years ago

I never tried.

notsolowki commented 7 years ago

you should try it. it seems safe

chazzzzz commented 7 years ago

Why don't some of the index numbers in the FW1.07 match the flyc_param_infos file in DJI go?

Example: FW1.07 "index" : 180, "typeID" : 5, "size" : 2, "attribute" : 11, "minValue" : 20, "maxValue" : 500, "defaultValue" : 90,
"name" : "g_config.control.basic_craft_pitch_0", "modify" : true

DJI Go 2.9.1 flyc_param_infos file "index" : 180, "typeID" : 5, "size" : 2, "attribute" : 11, "minValue" : 70, "maxValue" : 130, "defaultValue" : 100,
"name" : "g_config.control.basic_roll_0", "modify" : true

Is this normal?

notsolowki commented 7 years ago

the app dont have all of the same parameters. if i were you i would suggest using dji go 2.4 unless you have success with 2.9?!? but i would like him to answer that too

chazzzzz commented 7 years ago

Well I don't think I can have success if the indexes don't match up? i wouldn't know what to change... do they match up with 2.5? can you compare these in your version of dji go and the 1.07 bin? Next question is can you just change these values in the go app and let the bin alone?

notsolowki commented 7 years ago

i will compare them for you. to be honest i never checked the index numbers. you have to edit the flight controller if the value you want to use in the app is higher than it is in the flight controller. for example the vel_up param is for ascend speed. set the max to 16. then in the apps flyc set it to 16 max and set the default to 16. then int the app where the gain settings are you will see restore defaults. and thats it. i will ad that in dji go 3.1 when you hit reset it says its going to reset the gains/expo but in 2.4 it clearly says its going to set all the mc parameters..

notsolowki commented 7 years ago

if you dont resign the app it will uninstall after you reset your phone. the easiest way to reset the app is to extract flc_param from the app. edit it the way you want. then use apk editor PRO and select choose from app. then select simple edit. then goto res/raw and click flyc_param it will ask you to choose the file to replace it with at this point choose your edited flc_param. then after its done "working" it will give you the option to install it as an update. do that and your done.

notsolowki commented 7 years ago

i have my descend speed at 18 mph. which to the flight controller is 7 no problems yet and ive tested the heck out of it. also to flash the flight controller easier just rename mi01.bin to PMCAPPFw3.bin and copy it over to the sdcard

notsolowki commented 7 years ago

dont worry about brick, i already did that with PMCAPPFw3.bin and it was easy to recover. easy as restarting the update and having to sit through a really annoying beep

notsolowki commented 7 years ago

and chazz my indexes are the same way. @mefistotelis is this normal ?

chazzzzz commented 7 years ago

Yeah i noticed it wont let you edit it until you extract it somewhere else and i did get as far as understanding how to replace it with the edited one but i didn't change anything because i didn't know what to edit because the index #'s don't match so i stopped...I may just try editing in dji go only at some point but now time for bed....

notsolowki commented 7 years ago

i can send you a copy of my fw with ascend and descend edited and send you an update apk for 2.4 if youd like. i also reduced the idle speed

chazzzzz commented 7 years ago

not yet but maybe later... thank you for the offer!

MrBurnsAT commented 7 years ago

@notsolowki i would try it ;-)

mefistotelis commented 7 years ago

Why don't some of the index numbers in the FW1.07 match the flyc_param_infos file in DJI go?

The dji_flyc_param_ed.py does not use indexes at all. I guess the params in DJI Go are gathered from multiple drone types. It should be safe to use the longer list from DJI Go for updating firmware binary; but you should check what is updated if you try to do that without modifications.

Parameters not existing in the drone will show a warning.

notsolowki commented 7 years ago

i thought the list in the firmware was longer?!? and is any of you want to use my fw for a phantom 3 PRO this one has edited ascend speeds,idle speed, descend speed. enjoy and let me know if you like it!

instructions:

  1. drop PMCAPPFw3.bin on your drones sdcard and update YOUR CURRENTLY INSTALLED 1.7.6
  2. install dji go apk 2.4.2
  3. install the gen_signed.apk after you install dji go 2.4.2
  4. open dji go and restore default settings
  5. have fun

http://www.mediafire.com/file/re73qwn3nbnyjgn/p3xfw.zip

DO NOT USE THE P3X DEBUG TO INSTALL THE MODULE

DO NOT USE THIS FIRMWARE WITH ANY OTHER FIRMWARE BESIDES 1.7.6 ON A PHNATOM 3 PRO MAKE SURE YOU HAVE 1.7.6 INSTALLED BEFORE YOU WRITE THIS MODULE

MrBurnsAT commented 7 years ago

Ive downloaded Ur Firmware now.

Must install 1.7 bevore. Ill try it in the next days. ;-)

notsolowki commented 7 years ago

yes you must have 1.7.6 installed before you install that module

notsolowki commented 7 years ago

you guys want to see it in action?? https://youtu.be/suacDahqYEA

MrBurnsAT commented 7 years ago

WoW Thats really fast

I know that i must install 1.7.6 bevore and that i dont use debug file

notsolowki commented 7 years ago

@mefistotelis should i put a link to here in the video description?

mefistotelis commented 7 years ago

Sure, you can do that. Having more visibility might get us more skilled people here.

chazzzzz commented 7 years ago

"then in the app where the gain settings are you will see restore defaults"

The only restore default settings I could find is for the gimble...I looked in the gain settings and it isn't there...Am i missing something?

notsolowki commented 7 years ago

dji """""""""2.4.2""""""""" you will find restore settings. hit them both if you cant figure it out

notsolowki commented 7 years ago

Im going to assume your not using the app i said to use

screenshot_20170125-132728

chazzzzz commented 7 years ago

Your assumption is correct...BUT I assumed that when you said this "i will ad that in dji go 3.1 when you hit reset it says its going to reset the gains/expo " that there would be some sort of reset other then the one for the gimble...No offense but I'm more of a "trust but verify" type of person...I would prefer to use a newer version of DJI go if possible...Also do we really even know if you have to reset anything or maybe it just works by changing the default settings in the flyc_prama_infos file in the go app with no reset required?

notsolowki commented 7 years ago

i give you step by step instructions and you still cant figure it out

chazzzzz commented 7 years ago

You’re a funny man! Hey, I’ll try follow your instruction next time I want to go up really fast. :)

phudd commented 7 years ago

I have followed these instructions and have success until i try to install gen_signed.apk for some reason it acts like it is installing and then i get app not installed. i have dji go 2.4.2 installed. I am using samsung galaxy s7edge not rooted. have tried everything i can think of any help would be greatly appreciated.

drop PMCAPPFw3.bin on your drones sdcard and update YOUR CURRENTLY INSTALLED 1.7.6 install dji go apk 2.4.2 install the gen_signed.apk after you install dji go 2.4.2 open dji go and restore default settings have fun

notsolowki commented 7 years ago

You need to sign the apk.

On Jul 28, 2017 2:15 PM, "phudd" notifications@github.com wrote:

I have followed these instructions and have success until i try to install gen_signed.apk for some reason it acts like it is installing and then i get app not installed. i have dji go 2.4.2 installed. I am using samsung galaxy s7edge not rooted. have tried everything i can think of any help would be greatly appreciated.

drop PMCAPPFw3.bin on your drones sdcard and update YOUR CURRENTLY INSTALLED 1.7.6 install dji go apk 2.4.2 install the gen_signed.apk after you install dji go 2.4.2 open dji go and restore default settings have fun

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mefistotelis/phantom-firmware-tools/issues/15#issuecomment-318739575, or mute the thread https://github.com/notifications/unsubscribe-auth/AXcv_lW4J6CoI1BvWY7IGrEf8SJCDPGSks5sSjNXgaJpZM4LrKNR .

notsolowki commented 7 years ago

Try using apk editor to extract the file from tge app you want to change, then use apk editor to repack and install

On Jul 28, 2017 2:15 PM, "phudd" notifications@github.com wrote:

I have followed these instructions and have success until i try to install gen_signed.apk for some reason it acts like it is installing and then i get app not installed. i have dji go 2.4.2 installed. I am using samsung galaxy s7edge not rooted. have tried everything i can think of any help would be greatly appreciated.

drop PMCAPPFw3.bin on your drones sdcard and update YOUR CURRENTLY INSTALLED 1.7.6 install dji go apk 2.4.2 install the gen_signed.apk after you install dji go 2.4.2 open dji go and restore default settings have fun

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mefistotelis/phantom-firmware-tools/issues/15#issuecomment-318739575, or mute the thread https://github.com/notifications/unsubscribe-auth/AXcv_lW4J6CoI1BvWY7IGrEf8SJCDPGSks5sSjNXgaJpZM4LrKNR .

phudd commented 7 years ago

this worked thank you was wondering if anyone had a link to PMCAPPFw3.bin with the speed and no height restriction or nfz . thanks again

fineluser commented 6 years ago

I just cann't downgrade to 1.7.6, I am P3A with 1.9.6.when I downgrade to 1.8.8 the compass wrong,then downgrade to 1.7.6 with the P3S_DEBUG TEXT, The YOMO worked wrong,Can someone help me to downgrade to 1.7.6

fineluser commented 6 years ago

P3A怎么降级呢,从1.9.6降到1.8.8指南针就错误,再用DEBUG文件降级到1.7.6云台相机就出故障了 求大神支招阿,另外破解固件刷机以后,手机APP上500米的限制还在,不改的话能飞500米以上高吗