User Tools

Site Tools


howto:parameterhacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
howto:parameterhacks [2017/12/10 19:34]
andrew_by ToDo checked: Create tutorial on the use of web socket interface
howto:parameterhacks [2018/09/01 09:26]
validat0r [Max altitude]
Line 33: Line 33:
 | :::                                | :::      |:::|10 = GPS - no noticed difference| | :::                                | :::      |:::|10 = GPS - no noticed difference|
 | :::                                | :::      |:::|11 = GPS - no noticed difference| | :::                                | :::      |:::|11 = GPS - no noticed difference|
 +| :::                                | :::      |:::|12 = Tripod mode|
 |%%g_config_control_control_mode[2]%%|"Normal"|7|Same notes as above| |%%g_config_control_control_mode[2]%%|"Normal"|7|Same notes as above|
 +|%%g_config_control_control_mode[0]%%|"Tripod"|12|Same notes as above. Third position on some RCs like Mavic|
 ===== Sport+ ===== ===== Sport+ =====
  
Line 64: Line 66:
  
 ^Parameter-Key         ^Description                                   ^Value   ^ ^Parameter-Key         ^Description                                   ^Value   ^
-|%%g_config_flying_limit_height_limit_enabled%%|Enabled? Y/N|2|+|%%g_config_flying_limit_height_limit_enabled%%|Enabled? Y=1/N=2 Not visible in Assistant on recent FWs|2|
 |%%g_config_flying_limit_limit_height_abs_without_gps%%|Maximum local limit with no GPS signal.|3000| |%%g_config_flying_limit_limit_height_abs_without_gps%%|Maximum local limit with no GPS signal.|3000|
 |%%g_config_flying_limit_limit_height_abs%%|Maximum local limit. |3000| |%%g_config_flying_limit_limit_height_abs%%|Maximum local limit. |3000|
Line 95: Line 97:
 |%%g_config_gps_cfg_gps_enable%%|Deactivates the GPS|0| |%%g_config_gps_cfg_gps_enable%%|Deactivates the GPS|0|
 |%%brake_sensitive_gain%%|changes how fast the drone brakes, default 130|~((**__Warning__**: Do not change %%brake_sensitive_gain = 130%% to 70 like it says on some websites unless you are a //very confident pilot//, it takes up to 3 metres(9 feet) to stop))| |%%brake_sensitive_gain%%|changes how fast the drone brakes, default 130|~((**__Warning__**: Do not change %%brake_sensitive_gain = 130%% to 70 like it says on some websites unless you are a //very confident pilot//, it takes up to 3 metres(9 feet) to stop))|
 +
 +==== Manual mode (allows flips and barrel rolls) ====
 +
 +Change your "Sport" mode -switch to unassisted "Manual" mode. Fly only on open-area you are confident to train on. Idle is +50% and the drone will climb if you don't respond with throttle down. This is essentially a RC-helicopter mode which traditionally have no FC/IMU and is solely defendant on pilot skill. 
 +When switching back to "Normal" mode, make sure that the drone is right way up and is not tipped over it's horizontal or vertical axis. Failing to abide this will calibrate your IMU with the drone wrong way up and it will not automatically flip over. This is a sure way to damage your drone as it will fly towards the ground. can be seen here. [[https://www.youtube.com/watch?v=vioiVWP47dA|Inspire Inverted Crash]]
 +
 +^Parameter-Key         ^Description                                   ^Value   ^Notes                           ^
 +|%%g_config_control_control_mode[1]%%|"Switched"|0  |0 = Manual Mode (GPS position and Altitude Stabilization are disabled)|
 +|%%g_config_control_control_mode[2]%%|"Normal"|7|7 = PGPS Mode (Normal)|
 +
 +
 +===== WebSocket =====
 +NFZ avalable on the below versions only, all other options are avalable on all versions
 +? Spark : 1.00.0300
 +? Mavic Pro : 1.03.0700, 1.03.0400
 +? Phantom 4 Pro/Adv : 1.03.0509
 +? Inspire 2 : 1.00.0330
 +
 +to unlock all limits in any DJI drone (SPARK, Mavic, P4p, Inspire 2) you just need to do the following
 +
 +  -  connect your drone to DJI assistant (no need to login)
 +
 +otherwise you can try 
 +  -  install simple WebSocket client from google chrome apps
 +
 +from simple WebSocket client on Chrome connect to 
 +* ws://localhost:19870/general to get your drone param path like: ws://localhost:19870/controller/config/user/YOUR DRONE HASH NUMBER HERE
 +disconnect from general and connect to :
 +* ws://localhost:19870/controller/config/user/YOUR DRONE HASH NUMBER HERE
 +
 +in the command write & execute the below commands one by one:
 +
 +
 +----
 +
 +
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_airport_limit_cfg_cfg_disable_airport_fly_limit","VALUE":1}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_airport_limit_cfg_cfg_limit_data","VALUE":20250910}
 +
 +----
 +
 +
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_flying_limit_limit_height_abs_without_gps","VALUE":2500}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_flying_limit_limit_height_abs","VALUE":2500}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_flying_limit_limit_height_rel","VALUE":2500}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_flying_limit_height_limit_enabled","VALUE":2}
 +**
 +
 +----
 +
 +
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_mode_sport_cfg_tilt_atti_range","VALUE":60}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_mode_sport_cfg_vert_vel_up","VALUE":10}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_mode_sport_cfg_vert_acc_up","VALUE":10}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_mode_sport_cfg_vert_vel_down","VALUE":-10}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_mode_sport_cfg_vert_acc_down","VALUE":-10}
 +{"SEQ":"123456","CMD":"write","INDEX":"g_config_fw_cfg_max_speed","VALUE":20}
 +
  
  
-===== Contribute ===== 
-<todo #andrew_by:2017-12-10>Create tutorial on the use of web socket interface</todo> 
howto/parameterhacks.txt ยท Last modified: 2021/06/19 19:41 by kevinxa