Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
5ed2a9d
[LIDAR] Add Benewake TFmini initialization
digitalentity Jun 24, 2020
233c48b
Add Wing Autolaunch settings in the OSD menu as a submenu named "AUTO…
dragnea Jul 14, 2020
bab965d
Fixed wing launch refactor. Add a smooth transition to the current fl…
dragnea Jul 16, 2020
b444855
Enable pitch control gradually on launch timeout or altitude reached …
dragnea Jul 16, 2020
03e8bce
Partial implementation
dragnea Jul 17, 2020
7583d44
Partial implementation
dragnea Jul 18, 2020
f4a2589
Added Autolaunch messages
dragnea Jul 18, 2020
605efa8
Refinements
dragnea Jul 19, 2020
169fe5f
Move variables into a struct. Refine some states
dragnea Jul 21, 2020
ad1271a
Fixed autolaunch messages
dragnea Jul 27, 2020
98074c5
Set pitch when we launch it without idle rpm
dragnea Jul 27, 2020
8c2d613
Change default end time to 3s. (After a few launches, I found it more…
dragnea Jul 27, 2020
1faad08
Added cli command nav_fw_launch_end_time to the docs
dragnea Jul 27, 2020
0739e08
Merge branch 'master' into dragnea_autolaunch_refactor
dragnea Jul 27, 2020
0efa552
Added the new cli nav_fw_launch_end_time to the documentation
dragnea Jul 27, 2020
88a9445
[IMU] Use bell curve to calculate accelerometer weight in IMU calcul…
digitalentity Aug 11, 2020
b8db639
Returns GCS waypoint in the case of waypoint 255
YuxinPan Sep 1, 2020
2a76ce3
add new special waypoint 254 to facilitate desiredPosition in GCS ass…
YuxinPan Sep 2, 2020
1df0d5f
Add build-time check for NAV_MAX_WAYPOINTS
YuxinPan Sep 2, 2020
0c76e2c
Remove max waypoint assert from navigation.h
YuxinPan Sep 3, 2020
c64753c
Move max waypoint STATIC_ASSERT to navigation.c to ensure it is prope…
YuxinPan Sep 3, 2020
06666c8
Merge pull request #6 from YuxinPan/YuxinPan-patch-2.2
YuxinPan Sep 3, 2020
cb4791c
Implement fw_turn_assist_pitch_gain for TURN ASSIST to tune amount of…
avsaase Sep 3, 2020
3951a7a
Waypoint 254 access in any 3D-guided mode
YuxinPan Sep 3, 2020
25bfe9e
Merge pull request #7 from YuxinPan/patch-2.3
YuxinPan Sep 3, 2020
78da748
wrap PG back to 0
avsaase Sep 3, 2020
ff2b2a5
Fix alignment issues
avsaase Sep 4, 2020
9ef1070
Added deadband to fixedWingPitchToThrottleCorrection for testing
Airwide Sep 5, 2020
a1c7149
Renamed variable and added new setting nav_fw_pitch2thr_threshold
Airwide Sep 6, 2020
517fcd0
added setting to settings.md
Airwide Sep 6, 2020
3101c11
Also implement gain for roll
avsaase Sep 6, 2020
3f98e2f
Revert "Also implement gain for roll"
avsaase Sep 7, 2020
513a465
Merge pull request #1 from iNavFlight/master
avsaase Sep 15, 2020
3e26561
Implement fw_turn_assist_pitch_gain for TURN ASSIST to tune amount of…
avsaase Sep 3, 2020
8acbb34
wrap PG back to 0
avsaase Sep 3, 2020
ef7a55e
Fix alignment issues
avsaase Sep 4, 2020
18880e2
Also implement gain for roll
avsaase Sep 6, 2020
4406839
Revert "Also implement gain for roll"
avsaase Sep 7, 2020
20ef8a4
Merge branch 'coordinated_turn_pitch_gain' of https://github.com/avs2…
avsaase Sep 15, 2020
4474097
Merge pull request #2 from iNavFlight/master
avsaase Sep 17, 2020
2e0465a
Merge pull request #3 from iNavFlight/master
avsaase Sep 22, 2020
d6d6127
Added baseThrottleCorrection calculated from moving average pitch
Airwide Sep 27, 2020
103bed8
Fixed initialization bug
Airwide Sep 27, 2020
845de37
Added nav_fw_pitch2thr_smoothing to cli settings and osd menu
Airwide Sep 28, 2020
cf22b7b
Corrected cli variable description in settings.yaml
Airwide Sep 28, 2020
e24e8f8
[LINK] Cleanup unused .ld files
fiam Oct 4, 2020
8b2e81f
Scaled LQ based on CRSF manual numbers.
OptimusTi Oct 6, 2020
6ac103f
Update osd.c
OptimusTi Oct 6, 2020
c8f91cb
300% format test
OptimusTi Oct 6, 2020
44941c3
Merge branch 'crsf-LQ-scaling-test' of https://github.com/OptimusTi/i…
OptimusTi Oct 6, 2020
4caa061
SNR alarm default
OptimusTi Oct 7, 2020
319cd3a
Airplane outputs for MambaF722
DzikuVx Oct 10, 2020
fd8b202
Adds CRSF LQ Formats
OptimusTi Oct 11, 2020
3c5a5bd
Update settings.yaml
OptimusTi Oct 12, 2020
655946a
Formatting and variable name fixes
OptimusTi Oct 14, 2020
e3fc2fe
Merge pull request #6205 from iNavFlight/dzikuvx-mambaf722-airplane-m…
DzikuVx Oct 15, 2020
7ad9b4c
Merge pull request #5951 from dragnea/dragnea_add_autolaunch_settings…
DzikuVx Oct 16, 2020
91e69c9
Merge branch 'master' of https://github.com/dragnea/inav into dragnea…
Oct 17, 2020
be338c0
Resolve merge conflicts
dragnea Oct 17, 2020
4359590
Merge pull request #4 from iNavFlight/master
avsaase Oct 19, 2020
d17bfc6
Add logic condition for 3D home distance based on Pythagorean theorem.
avsaase Oct 19, 2020
5f3eec8
Merge pull request #6226 from avs2/avs2-3D-home-distance-lc
DzikuVx Oct 20, 2020
b262179
Update serial-4way-if to v20005
4712 Oct 20, 2020
ca97a8e
Merge pull request #6227 from 4712/serial-4way-if_v20005
digitalentity Oct 20, 2020
c8accac
DJI CRAFT_NAME can be used for warnings, trip distance, efficiency, 3…
Oct 20, 2020
6da5c67
small cosmetic correction
Oct 20, 2020
e57dbdf
local build works, desparate attempt to pass the ci build checks
Oct 21, 2020
3191ece
compiled, flashed and tested unit IMPERIAL successful
Oct 21, 2020
5e49871
adding ifdef USE_OSD around new functions
Oct 21, 2020
a88bab5
Added Spektrum SRXL2 support. (#5791)
MiguelFAlvarez Oct 23, 2020
c9f0e47
Merge branch 'master' into crsf-LQ-format
DzikuVx Oct 23, 2020
5afbcaa
Merge pull request #6213 from OptimusTi/crsf-LQ-format
DzikuVx Oct 23, 2020
28f50f4
Update Building in Windows 10 with Linux Subsystem.md
MrD-RC Oct 23, 2020
56977a8
Merge pull request #6235 from MrD-RC/patch-1
DzikuVx Oct 23, 2020
59b8720
[GPS] Add MSP_GPS sensor. Enable on F4+ boards; Add extra RTC sanity …
digitalentity Sep 4, 2020
816c739
[GPS] add instance and week fields
digitalentity Sep 4, 2020
cf99b7d
[BARO/MAG] Move MSP sensor payload structures to a separate file; Imp…
digitalentity Sep 5, 2020
f094387
[MSP SENSOR] Apply default rotation inside of the compass MSP driver;…
digitalentity Sep 8, 2020
c91b91a
[MSP SENSOR] Add support for MSP Airspeed sensor
digitalentity Oct 24, 2020
364630f
Merge branch 'master' into aw-fw-nav-smooth-throttle
Airwide Oct 25, 2020
b9df30f
Merge pull request #6172 from iNavFlight/agh_cleanup_ldfiles
digitalentity Oct 28, 2020
f1d1b4f
Merge pull request #6037 from iNavFlight/de_imu_accel_limit
digitalentity Oct 28, 2020
0573741
Fix wrong ifdef clause
digitalentity Oct 28, 2020
ab051b1
Merge pull request #6101 from avsaase/coordinated_turn_pitch_gain
digitalentity Oct 28, 2020
20efd89
Make nav_overrides_motor_stop tristate: OFF | AUTO_ONLY | ALL_NAV
shellixyz Aug 24, 2020
6600a9c
Add SDCARD support into MATEKF722PX
MATEKSYS Sep 8, 2020
bb1d5d7
Add softserial1 and 2 spare ADC into MATEKF765
MATEKSYS Sep 8, 2020
9790fa4
Merge pull request #6246 from iNavFlight/MATEKSYS-master
digitalentity Oct 31, 2020
57004c8
Create separate target for SDCARD default for MATEKF722WPX
stronnag Nov 1, 2020
d97c282
Merge pull request #6252 from iNavFlight/jh_separate_matekf722wpx
digitalentity Nov 2, 2020
dd782a0
fix incorrect error code F7 / sd mmc
stronnag Nov 2, 2020
78cf9d5
Update Building in Windows 10 with Linux Subsystem.md
MrD-RC Nov 2, 2020
1cef921
Fix a bunch more compilation warnings
shellixyz Nov 2, 2020
9cb7163
Merge pull request #6257 from iNavFlight/jh_f7_sd_mmc_error_enum
digitalentity Nov 3, 2020
46f7c5a
Avoid using goto in biquadFilterInit
shellixyz Nov 3, 2020
9aa9b35
Merge pull request #1 from iNavFlight/master
MrD-RC Nov 3, 2020
ea59b0e
Adds DJI OSD support to 2x F3 boards
t413 Nov 4, 2020
d0046f3
Merge pull request #6258 from MrD-RC/patch-1
DzikuVx Nov 5, 2020
8b1f7e3
Changed centidegrees to decidegrees in comments and docs
Airwide Nov 5, 2020
8baa183
Merge pull request #2 from iNavFlight/master
MrD-RC Nov 6, 2020
0ba571e
Adds proper LQ Alarm Setting
OptimusTi Nov 6, 2020
f15dee4
[GPS] Support for M9N module and other u-blox 9 receivers
digitalentity Nov 7, 2020
bb7dd60
Merge pull request #6090 from iNavFlight/de_extra_msp_sensors
digitalentity Nov 7, 2020
2a3d9c3
Merge pull request #6269 from iNavFlight/de_ublox9
digitalentity Nov 7, 2020
3265a82
Merge pull request #6268 from OptimusTi/adds-osd_link_quality_alarm
DzikuVx Nov 7, 2020
7bef934
Update IDE - Visual Studio Code with Windows 10.md
MrD-RC Nov 7, 2020
3fcbb44
[GPS] Fix incorrect constant value; Add logging
digitalentity Nov 7, 2020
e08dc30
Merge pull request #6271 from iNavFlight/de_ublox9
digitalentity Nov 7, 2020
d8e8bcb
Update Controls.md
MrD-RC Nov 8, 2020
55f9a7a
Merge pull request #6274 from MrD-RC/patch-3
DzikuVx Nov 8, 2020
ce9e508
Merge pull request #6270 from MrD-RC/patch-2
DzikuVx Nov 8, 2020
29d56ba
LC Operands update
DzikuVx Nov 8, 2020
166ab13
Merge pull request #3 from iNavFlight/master
MrD-RC Nov 8, 2020
381ac55
Merge pull request #6279 from t413/f3-djiosd
digitalentity Nov 10, 2020
c108199
Merge pull request #6275 from iNavFlight/dzikuvx-lc-operands-update
DzikuVx Nov 10, 2020
2767297
Full/unfiltered throttle correction outside of pitch deadband
Airwide Nov 11, 2020
280407a
Merge pull request #4 from iNavFlight/master
MrD-RC Nov 11, 2020
cc47513
Changed to PT1 filter in fixedWingPitchToThrottleCorrection
Airwide Nov 11, 2020
dab9f95
fixedWingPitchToThrottleCorrection definition bugfix
Airwide Nov 12, 2020
2131cf9
[DOC] add some basic information about SRXL2 (#6284)
stronnag Nov 13, 2020
e7a8cb4
Update beeper.h
MrD-RC Nov 13, 2020
5331fd2
Update beeper.c
MrD-RC Nov 13, 2020
f38b2c0
Update navigation_fw_launch.c
MrD-RC Nov 13, 2020
a038627
Merge pull request #6230 from mf0o/DJI_warnings_in_craftname
digitalentity Nov 14, 2020
2dfa42d
[DJI] Add ESC temperature to DJI OSD. Add overrides to show IMU/BARO …
digitalentity Nov 14, 2020
3f93c7d
[DJI] Refactoring DJI craft name override to show informational messages
digitalentity Nov 14, 2020
99b8ff0
[DJI] If craft name isn't a valid element list - fall back to warning…
digitalentity Nov 14, 2020
d4a2971
Merge pull request #6285 from MrD-RC/autolaunch-low-throttle-indication
digitalentity Nov 14, 2020
5d66d81
Merge pull request #6086 from YuxinPan/patch-2
digitalentity Nov 14, 2020
91a11c8
Merge pull request #5881 from iNavFlight/de_tf_lidar_fixes
digitalentity Nov 14, 2020
c07386c
Merge pull request #6067 from shellixyz/improvement/make_nav_override…
digitalentity Nov 14, 2020
c7cbf44
Merge branch 'master' into de_dji_esc_temp
digitalentity Nov 14, 2020
9550e07
Merge pull request #6261 from shellixyz/improvement/fix_warnings
digitalentity Nov 14, 2020
7fd3f18
Merge pull request #6287 from iNavFlight/de_dji_esc_temp
digitalentity Nov 14, 2020
6d4c369
Add low throttle beeper
dragnea Nov 14, 2020
6d1a7f0
Merge branch 'master' of https://github.com/dragnea/inav into dragnea…
dragnea Nov 14, 2020
1b44bd5
Changed limits for feature settings
Airwide Nov 15, 2020
b233eb6
Merge pull request #5988 from dragnea/dragnea_autolaunch_refactor
digitalentity Nov 15, 2020
efeefd9
Merge pull request #6104 from Airwide/aw-fw-nav-smooth-throttle
digitalentity Nov 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/Cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,4 @@ For targets that have a flash data chip, typically used for blackbox logs, the f
| `flash_write <address> <data>` | Writes `data` to `address` |

## CLI Variable Reference

See [Settings.md](Settings.md).
4 changes: 2 additions & 2 deletions docs/Controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Arming

When armed, the aircraft is ready to fly and the motors will spin when throttle is applied. The motors will spin at a slow speed when armed (this feature may be disabled by setting MOTOR_STOP, but for safety reasons, that is not recommended).
When armed, the aircraft is ready to fly and the motors will spin when throttle is applied. With multirotors, the motors will spin at a slow speed when armed (this feature may be disabled by setting MOTOR_STOP, but for safety reasons, that is not recommended).

By default, arming and disarming is done using stick positions. (NOTE: this feature is disabled when using a switch to arm.)
Arming and disarming is done using a switch, set up on the modes page. (NOTE: Stick arming was removed in iNav 2.2)

## Stick Positions

Expand Down
5 changes: 5 additions & 0 deletions docs/Programming Framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ IPF can be edited using INAV Configurator user interface, of via CLI
| 28 | STABILIZED_YAW | Yaw PID controller output `[-500:500]` |
| 29 | ACTIVE_WAYPOINT_INDEX | Indexed from `1`. To verify WP is in progress, use `IS_WP` |
| 30 | ACTIVE_WAYPOINT_ACTION | See ACTIVE_WAYPOINT_ACTION paragraph |
| 31 | 3D HOME_DISTANCE | in `meters`, calculated from HOME_DISTANCE and ALTITUDE using Pythagorean theorem |
| 32 | CROSSFIRE LQ | Crossfire Link quality as returned by the CRSF protocol |
| 33 | CROSSFIRE SNR | Crossfire SNR as returned by the CRSF protocol |

##### ACTIVE_WAYPOINT_ACTION

Expand Down Expand Up @@ -143,6 +146,8 @@ IPF can be edited using INAV Configurator user interface, of via CLI
| 6 | ANGLE | |
| 7 | HORIZON | |
| 8 | AIR | |
| 9 | USER1 | |
| 10 | USER2 | |


### Flags
Expand Down
77 changes: 59 additions & 18 deletions docs/Rx.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ http://www.frsky-rc.com/product/pro.php?pro_id=21

### Spektrum

This section describes the legacy Spektrum satellite capability; the newer SRXL2 protocol is described [later in this document](#srxl2) .

8 channels via serial currently supported.

These receivers are reported working:
Expand All @@ -47,10 +49,10 @@ As of iNav 1.6, a pseudo RSSI, based on satellite fade count is supported and re

* Bind the satellite receiver using a physical RX; the bind function provided by the flight controller is not sufficient.
* The CLI variable `rssi_channel` is set to channel 9:
````
```
set rssi_channel = 9
````
This pseudo-RSSI should work on all makes of Spektrum satellite RX; it is tested as working on Lemon RX satellites http://www.lemon-rx.com/index.php?route=product/product&path=72&product_id=109 and http://www.lemon-rx.com/index.php?route=product/product&path=72&product_id=135 (recommended).
```
This pseudo-RSSI should work on all makes of Spektrum satellite RX; it is tested as working on [Lemon RX satellites](http://www.lemon-rx.com/index.php?route=product/product&path=72&product_id=109 and http://www.lemon-rx.com/index.php?route=product/product&path=72&product_id=135) (recommended).

### S.BUS

Expand Down Expand Up @@ -170,6 +172,46 @@ After flash "10ch Timer Mod i6 Updater", it is passible to get RSSI signal on se

It is possible to use IBUS RX and IBUS telemetry on only one port of the hardware UART. More information in Telemetry.md.obj/inav_2.2.2_SPRACINGF3EVO.hex

### SRXL2

SRXL2 is a newer Spektrum protocol that provides a bidirectional link between the FC and the receiver, allowing the user to get FC telemetry data and basic settings on Spektrum Gen 2 airware TX. SRXL2 is supported in inav 2.6 and later. It offers improved performance and features compared to earlier Spektrum RX.

#### Wiring

Signal pin on receiver (labeled "S") must be wired to a **UART TX** pin on the FC. Voltage can be 3.3V (4.0V for SPM4651T) to 8.4V. On some F4 FCs, the TX pin may have a signal inverter (such as for S.Port). Make sure this isn't the case for the pin you intend to use.

#### Configuration

Selection of SXRL2 is provided in the inav 2.6 and later configurators. It is necessary to complete the configuration via the CLI; the following settings are recommended:

```
feature TELEMETRY
feature -RSSI_ADC
map TAER
set receiver_type = SERIAL
set serialrx_provider = SRXL2
set serialrx_inverted = OFF
set srxl2_unit_id = 1
set srxl2_baud_fast = ON
set rssi_source = PROTOCOL
set rssi_channel = 0
```

#### Notes:

* RSSI_ADC is disabled, as this would override the value provided through SRXL2
* `rssi_channel = 0` is required, unlike earlier Spektrum devices (e.g. SPM4649T).

Setting these values differently may have an adverse effects on RSSI readings.

#### CLI Bind Command

This command will put the receiver into bind mode without the need to reboot the FC as it was required with the older `spektrum_sat_bind` command.

```
bind_rx
```

## MultiWii serial protocol (MSP)

Allows you to use MSP commands as the RC input. Only 8 channel support to maintain compatibility with MSP.
Expand Down Expand Up @@ -215,21 +257,20 @@ To setup spectrum in the GUI:
2. Move to the "Configuration" page and in the upper lefthand corner choose Serial RX as the receiver type.
3. Below that choose the type of serial receiver that you are using. Save and reboot.

Using CLI:
For Serial RX enable `RX_SERIAL` and set the `serialrx_provider` CLI setting as follows.

| Serial RX Provider | Value |
| ------------------ | ----- |
| SPEKTRUM1024 | 0 |
| SPEKTRUM2048 | 1 |
| SBUS | 2 |
| SUMD | 3 |
| SUMH | 4 |
| XBUS_MODE_B | 5 |
| XBUS_MODE_B_RJ01 | 6 |
| SERIALRX_IBUS | 7 |
| SERIALRX_JETIEXBUS | 8 |
| SERIALRX_CRSF | 9 |
#### Using CLI:

For Serial RX set the `receiver_type` and `serialrx_provider` setting as appropriate for your RX.

```
# get rec
receiver_type = SERIAL
Allowed values: NONE, PPM, SERIAL, MSP, SPI, UIB

# get serialrx
serialrx_provider = SBUS
Allowed values: SPEK1024, SPEK2048, SBUS, SUMD, SUMH, XB-B, XB-B-RJ01, IBUS, JETIEXBUS, CRSF, FPORT, SBUS_FAST, FPORT2, SRXL2

```

### PPM/PWM input filtering.

Expand Down
5 changes: 4 additions & 1 deletion docs/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,16 @@
| nav_fw_launch_min_time | 0 | Allow launch mode to execute at least this time (ms) and ignore stick movements [0-60000]. |
| nav_fw_launch_motor_delay | 500 | Delay between detected launch and launch sequence start and throttling up (ms) |
| nav_fw_launch_spinup_time | 100 | Time to bring power from minimum throttle to nav_fw_launch_thr - to avoid big stress on ESC and large torque from propeller |
| nav_fw_launch_end_time | 3000 | Time for the transition of throttle and pitch angle, between the launch state and the subsequent flight mode [ms] |
| nav_fw_launch_thr | 1700 | Launch throttle - throttle to be set during launch sequence (pwm units) |
| nav_fw_launch_timeout | 5000 | Maximum time for launch sequence to be executed. After this time LAUNCH mode will be turned off and regular flight mode will take over (ms) |
| nav_fw_launch_velocity | 300 | Forward velocity threshold for swing-launch detection [cm/s] |
| nav_fw_loiter_radius | 5000 | PosHold radius. 3000 to 7500 is a good value (30-75m) [cm] |
| nav_fw_max_thr | 1700 | Maximum throttle for flying wing in GPS assisted modes |
| nav_fw_min_thr | 1200 | Minimum throttle for flying wing in GPS assisted modes |
| nav_fw_pitch2thr | 10 | Amount of throttle applied related to pitch attitude in GPS assisted modes. Throttle = nav_fw_cruise_throttle - (nav_fw_pitch2thr * pitch_angle). (notice that pitch_angle is in degrees and is negative when climbing and positive when diving, and throttle value is constrained between nav_fw_min_thr and nav_fw_max_thr) |
| nav_fw_pitch2thr_smoothing | 0 | How smoothly the autopilot makes pitch to throttle correction inside a deadband defined by nav_fw_pitch2thr_threshold |
| nav_fw_pitch2thr_threshold | 0 | Threshold from average pitch where momentary pitch_to_throttle correction kicks in. [decidegrees] |
| nav_fw_pos_hdg_d | 0 | D gain of heading trajectory PID controller. (Fixedwing, rovers, boats) |
| nav_fw_pos_hdg_i | 0 | I gain of heading trajectory PID controller. (Fixedwing, rovers, boats) |
| nav_fw_pos_hdg_p | 60 | P gain of heading PID controller. (Fixedwing, rovers, boats) |
Expand Down Expand Up @@ -485,4 +488,4 @@
| yaw_lpf_hz | 30 | Yaw low pass filter cutoff frequency. Should be disabled (set to `0`) on small multirotors (7 inches and below) |
| yaw_rate | 20 | Defines rotation rate on YAW axis that UAV will try to archive on max. stick deflection. Rates are defined in tens of degrees (deca-degrees) per second [rate = dps/10]. That means, rate 20 represents 200dps rotation speed. Default 20 (200dps) is more less equivalent of old Cleanflight/Baseflight rate 0. Max. 180 (1800dps) is what gyro can measure. |

> Note: this table is autogenerated. Do not edit it manually.
> Note: this table is autogenerated. Do not edit it manually.
43 changes: 41 additions & 2 deletions docs/development/Building in Windows 10 with Linux Subsystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ Mount MS windows C drive and clone iNav
You are ready!
You now have a folder called inav in the root of C drive that you can edit in windows

### If you get a cloning error

On some installations, you may see the following error:
```
Cloning into 'inav'...
error: chmod on /mnt/c/inav/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
```

You can fix this with by remounting the drive using the following commands
1. `sudo umount /mnt/c`
2. `sudo mount -t drvfs C: /mnt/c -o metadata`

## Building (example):

Expand Down Expand Up @@ -84,12 +96,39 @@ make[1]: *** [CMakeFiles/Makefile2:33290: src/main/target/MATEKF722SE/CMakeFiles
make: *** [Makefile:13703: MATEKF722SE] Error 2
```

This error can be triggered by a Windows PATHs included in the Linux Subsystem. The solution is to:
This error can be triggered by a Windows PATHs included in the Linux Subsystem. The solution is:

#### For WSL V1 - Flags set as 7 by default

1. Open Windows RegEdit tool
1. Find `HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{GUID}\Flags`
1. Change `Flags` from `7` to `5`
1. Restart WSL and Windows preferably
1. `cd build`
1. `cmake ..`
1. `make {TARGET}` should be working again
1. `make {TARGET}` should be working again

#### For WSL V2 - Flags set as 0x0000000f (15) by default
1. Open Windows RegEdit tool
1. Find `HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{GUID}\Flags`
1. Change `Flags` from `f` to `d`, it is stored as Base Hexadecimal
1. Restart WSL and Windows preferably
1. `cd build`
1. `cmake ..`
1. `make {TARGET}` should be working again

#### Or, for either version
1. In the Linux Subsystem, `cd /etc/`
2. Create a new file with `sudo nano wsl.conf`
3. Enter the following in to the new file:
```
[Interop]
appendWindowsPath=false
```
4. Save the file by holding `Ctrl` and pressing `o`
5. Press `Enter` to confirm the wsl.conf filename.
6. Hit `Ctrl`+`x` to exit nano
7. Restart WSL and Windows preferably
8. `cd build`
9. `cmake ..`
9. `make {TARGET}` should be working again
6 changes: 3 additions & 3 deletions docs/development/IDE - Visual Studio Code with Windows 10.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ Edit `./.vscode/tasks.json` to enable Building with `Ctrl + Shift + B` keyboard
}
,
{
"label": "CMAKE Update",
"label": "Install/Update CMAKE",
"type": "shell",
"command": "cmake ..",
"command": "mkdir -p build && cd build && cmake ..",
"group": "build",
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/build"
"cwd": "${workspaceFolder}"
}
}
]
Expand Down
25 changes: 19 additions & 6 deletions src/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ main_sources(COMMON_SRC
drivers/barometer/barometer_ms56xx.h
drivers/barometer/barometer_spl06.c
drivers/barometer/barometer_spl06.h
drivers/barometer/barometer_msp.c
drivers/barometer/barometer_msp.h

drivers/buf_writer.c
drivers/buf_writer.h
Expand Down Expand Up @@ -148,6 +150,8 @@ main_sources(COMMON_SRC
drivers/compass/compass_mpu9250.h
drivers/compass/compass_qmc5883l.c
drivers/compass/compass_qmc5883l.h
drivers/compass/compass_msp.c
drivers/compass/compass_msp.h

drivers/display.c
drivers/display.h
Expand Down Expand Up @@ -195,12 +199,14 @@ main_sources(COMMON_SRC
drivers/osd.h
drivers/persistent.c
drivers/persistent.h
drivers/pitotmeter_adc.c
drivers/pitotmeter_adc.h
drivers/pitotmeter_ms4525.c
drivers/pitotmeter_ms4525.h
drivers/pitotmeter_virtual.c
drivers/pitotmeter_virtual.h
drivers/pitotmeter/pitotmeter_adc.c
drivers/pitotmeter/pitotmeter_adc.h
drivers/pitotmeter/pitotmeter_ms4525.c
drivers/pitotmeter/pitotmeter_ms4525.h
drivers/pitotmeter/pitotmeter_msp.c
drivers/pitotmeter/pitotmeter_msp.h
drivers/pitotmeter/pitotmeter_virtual.c
drivers/pitotmeter/pitotmeter_virtual.h
drivers/pwm_esc_detect.c
drivers/pwm_esc_detect.h
drivers/pwm_mapping.c
Expand Down Expand Up @@ -401,6 +407,8 @@ main_sources(COMMON_SRC
rx/sbus_channels.h
rx/spektrum.c
rx/spektrum.h
rx/srxl2.c
rx/srxl2.h
rx/sumd.c
rx/sumd.h
rx/sumh.c
Expand Down Expand Up @@ -486,6 +494,8 @@ main_sources(COMMON_SRC
io/displayport_msp.h
io/displayport_oled.c
io/displayport_oled.h
io/displayport_srxl.c
io/displayport_srxl.h
io/displayport_hott.c
io/displayport_hott.h
io/flashfs.c
Expand All @@ -495,6 +505,7 @@ main_sources(COMMON_SRC
io/gps_ublox.c
io/gps_nmea.c
io/gps_naza.c
io/gps_msp.c
io/gps_private.h
io/ledstrip.c
io/ledstrip.h
Expand Down Expand Up @@ -547,6 +558,8 @@ main_sources(COMMON_SRC

telemetry/crsf.c
telemetry/crsf.h
telemetry/srxl.c
telemetry/srxl.h
telemetry/frsky.c
telemetry/frsky.h
telemetry/frsky_d.c
Expand Down
Loading