Commit 5c7ee40
Plane: add rngfnd. engagement distance parameter
Introduces the RNGFND_LND_DIST parameter, which defines the horizontal
distance to the landing point at which the rangefinder engages when
RNGFND_LANDING is enabled. This is useful for landing on platforms or
small plateaus, and to avoid interference from uneven terrain or
obstacles during the approach.
When set to the default value of 0, the rangefinder engages as soon as
it is within range, matching existing behavior.
Key changes:
- Adds RNGFND_LND_DIST parameter to control rangefinder engagement
horizontal distance during landing.
- Updates rangefinder logic to engage only when within the specified
distance.
- Requires rangefinder_state.in_use for rangefinder correction to be
applied.
- Requires both in_use and in_range for rangefinder_active to be true.1 parent c5f6cfd commit 5c7ee40
3 files changed
+30
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1282 | 1293 | | |
1283 | 1294 | | |
1284 | 1295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
593 | 596 | | |
594 | 597 | | |
595 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
691 | 693 | | |
692 | 694 | | |
693 | 695 | | |
| |||
783 | 785 | | |
784 | 786 | | |
785 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
786 | 796 | | |
787 | 797 | | |
788 | | - | |
| 798 | + | |
| 799 | + | |
789 | 800 | | |
790 | 801 | | |
791 | 802 | | |
| |||
951 | 962 | | |
952 | 963 | | |
953 | 964 | | |
954 | | - | |
| 965 | + | |
| 966 | + | |
955 | 967 | | |
956 | 968 | | |
957 | 969 | | |
| |||
0 commit comments