Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| searchwing-firmware [2019/02/11 10:37] – added searchwing18 link beckmanf | searchwing-firmware [2019/05/05 11:57] (current) – Update the failsafe params. j0ge4622 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== PX4 Firmware ===== | + | ====== PX4 Firmware |
| Today (10.2.2019) the firmware for the PX4 is a custom build based on the 1.8.2 release. The firmware is maintained in the github repository: | Today (10.2.2019) the firmware for the PX4 is a custom build based on the 1.8.2 release. The firmware is maintained in the github repository: | ||
| Line 10: | Line 10: | ||
| * [[https:// | * [[https:// | ||
| - | The above changes to the upstream firmware are after the 1.8.2 release. I cherry-picked the above changes and applied | + | The above changes to the upstream firmware are after the 1.8.2 release. I cherry-picked the above changes and applied |
| * [[https:// | * [[https:// | ||
| which branched off the stable branch from upstream. The changes for the reduced Telemetry2 activity are missing. | which branched off the stable branch from upstream. The changes for the reduced Telemetry2 activity are missing. | ||
| + | |||
| + | ===== Build ===== | ||
| + | |||
| + | The build command for the 1.8.2 based firmeware is | ||
| + | |||
| + | < | ||
| + | make px4fmu-v4_default | ||
| + | </ | ||
| + | |||
| + | Note the missing " | ||
| + | |||
| + | < | ||
| + | make help | ||
| + | make list_config_targets | ||
| + | </ | ||
| + | |||
| + | ===== Firmware installation ===== | ||
| + | |||
| + | The firmware is [[https:// | ||
| + | |||
| + | === Find out Firmware version === | ||
| + | |||
| + | The SearchWing Firmware version is displayed in QGC as 1.8.2dev, i.e. the internal 1.8.2-1 or 1.8.2-2 is not shown directly. This can be done via the [[https:// | ||
| + | |||
| + | < | ||
| + | ver all | ||
| + | </ | ||
| + | |||
| + | You can then compare the git hash. | ||
| + | |||
| + | === Mag Sensor Setup === | ||
| + | |||
| + | Make sure that only the mag sensor in the GPS Module is enabled. The two mag sensors in the pixracer should be disabled, because there is too much disturbance from the power cable below the autopilot. When the [[https:// | ||
| + | |||
| + | * CAL_MAG0_EN=1 (Enabled) | ||
| + | * CAL_MAG0_ROT=2 (Yaw 90 Degrees) | ||
| + | * CAL_MAG1_EN=CAL_MAG2_EN=0 (Disabled) | ||
| + | |||
| + | After the mag setup is changed, the mag sensors have to be calibrated. If you see a "Mag Inconsistent Error" in QGC, then this setup is wrong. | ||
| + | |||
| + | ===== Parameter ===== | ||
| + | |||
| + | ==== Procedure ==== | ||
| + | |||
| + | - Export parameter from QGC (.params file) | ||
| + | - Compare with the concurrent or for a new plane with an already existing file in [[https:// | ||
| + | - Optional: Delete the not needed parameter and push the new file. | ||
| + | |||
| + | ==== Failsafes ==== | ||
| + | |||
| + | - Low Battery Failsafe: | ||
| + | - BAT_CRIT_THR = 0.1 (capacity [%]) | ||
| + | - BAT_EMERGEN_THR = 0.05 (capacity [%]) | ||
| + | - BAT_LOW_THR = 0.2 (capacity [%]) | ||
| + | - COM_LOW_BAT_ACT = 1 (return mode) | ||
| + | - RC Loss Failsafe: | ||
| + | - COM_RC_LOSS_T = 5 (time to detect RC-loss [s]) | ||
| + | - NAV_RCL_ACT = 0 (no action) | ||
| + | - Data Link Loss Failsafe: | ||
| + | - COM_DL_LOSS_T = 10 (time to detect datalink-loss [s]) | ||
| + | - NAV_DLL_ACT = 2 (return mode) | ||
| + | - Geofence Failsafe: | ||
| + | - GF_ACTION = 3 (return mode) | ||
| + | - GF_COUNT = -1 (counter limit to detect geofence breach) | ||
| + | - GF_MAX_HOR_DIST = 3000 (max horizontal distance home-plane [m]) | ||
| + | - GF_MAX_VER_DIST = 250 (max vertical distance home-plane [m]) | ||
| + | - Return Home Settings: | ||
| + | - RTL_DESCEND_ALT = 100 (altitude to loiter above home [m]) | ||
| + | - RTL_LAND_DELAY = -1 (no land, just loiter [s]) | ||
| + | - RTL_RETURN_ALT = 100 (altitude to flight to home [m]) | ||
| + | - RTL_TYPE = 0 (direkt path to home) | ||
| + | - Land Mode Settings: | ||
| + | - COM_DISARM_LAND = 1 (disarm after delay [s]) | ||
| + | - Position (GPS) Loss Failsafe: | ||
| + | - COM_POSCTL_NAVL = 1 (assume no RC → Land Mode with heigt, Termination without) | ||
| + | - COM_POS_FS_DELAY = 5 (time to detect GPS-loss [s]) | ||
| + | - NAV_GPSF_LT = 10 (loiter time to recover GPS [s]) | ||
| + | - NAV_GPSF_P = 0 (loiter pitch [deg]) | ||
| + | - NAV_GPSF_R = 15 (loiter roll [deg]) | ||
| + | - NAV_GPSF_TR = 0 (loiter thrust [%]) | ||
| + | - Mission Failsafe | ||
| + | - MIS_DIST_1WP = 1500 (max distance home-wp1 [m]) | ||
| + | - MIS_DIST_WPS = 2000 (max distance wp-wp [m]) | ||
| + | - Set both values to -1, if more than 10km are needed. | ||
| + | - Traffic Avoidance Failsafe | ||
| + | - NAV_TRAFF_AVOID = 2 (Return Mode) | ||
| + | |||
| + | ===== Releases ===== | ||
| + | |||
| + | === searchwing-1.8.2-1 === | ||
| + | |||
| + | * Based on upstream 1.8.2 | ||
| + | * Added X-UAV Mini Talon Airframe | ||
| + | * {{: | ||
| + | * Git Hash: 1172edd2a093e614b9ca77bee753c19262295be3 | ||
| + | |||
| + | === searchwing-1.8.2-2 (27.2.2019) === | ||
| + | |||
| + | * Added Björns minimal telemetry patch for the Raspberry Pi Camera Trigger from the autopilot | ||
| + | * {{: | ||
| + | * Git Hash: 2786d39b71068917de6fab381e802f1205988af1 | ||
| + | * [[https:// | ||
| + | |||
| + | |||