Andy Piper
d16872cca5
Plane: compile out ADSB mode if required
4 years ago
Samuel Tabor
10111f92d5
Plane: Rename SOARING_ENABLED to HAL_SOARING_ENABLED and don't compare to ENABLED.
4 years ago
Samuel Tabor
ad48394b50
Plane: Add comment to clarify additional 10m in soaring altitude target.
4 years ago
Samuel Tabor
59f4c7a3c0
Plane: Allow auto climb back to SOAR_ALT_CUTOFF when soaring in FBWB or CRUISE modes.
4 years ago
Andrew Tridgell
bf0f359445
Plane: fixed LOITER_TO_ALT with terrain target
...
many thanks to Pompecukor for finding this!
Fixes #14951
5 years ago
Samuel Tabor
334fd4afbc
Plane: Remove update_navigation() method.
5 years ago
Samuel Tabor
06eea6ed9f
Plane: Move navigation functions into flight mode classes.
5 years ago
Michael du Breuil
99ad126986
Plane: Fix redundant call to SpdHgt_Controller->get_land_airspeed()
5 years ago
Buzz
0f5177b291
Plane: Support a set of offboard MAVLink guided controls with rates
...
+ 3 rounds of fixes
5 years ago
Samuel Tabor
b9daae062c
AP_Soaring: Use enum class rather than typedef enum for states and hide details of these.
5 years ago
Samuel Tabor
170b599469
Plane: Required changes for conditional soaring compilation (fmuv2).
5 years ago
Samuel Tabor
e1f7122566
AP_Soaring: Improve tracking of enabled/disabled status.
5 years ago
Samuel Tabor
e7418637ee
Plane: In FBWB make target alt track current if soaring is enabled and suppressing throttle.
5 years ago
Peter Hall
a2e72de5ae
Plane: move to airspeed_estimate with pointer
5 years ago
Pierre Kancir
65b4ba0539
ArduPlane: use past_interval_finish_line and line_path_proportion from Location
6 years ago
Pierre Kancir
3f5999a6ad
ArduPlane: move location_update to Location and rename to offset_bearing
6 years ago
Pierre Kancir
58328da5f3
ArduPlane: move get_bearing_cd to Location and rename to get_bearing_to
6 years ago
Tom Pittenger
0270c57530
Plane: massive refactor and creation of Mode class
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
f430fd14f6
Plane: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Peter Barker
acafb0f3c1
Plane: adjust for location flags being moved out of union
6 years ago
Michael du Breuil
a78bce32c0
Plane: Allow users to force target airspeed in cruise or fbwb
6 years ago
Michael du Breuil
05484c3987
Plane: Support a different landing airspeed for fw quadplane landings
6 years ago
Michael du Breuil
42e67d5849
Plane: Whitespace fixes
6 years ago
Andrew Tridgell
da69bf3391
Plane: added an abstraction for reverse thrust
...
use have_reverse_thrust() and get_throttle_input()
6 years ago
Michael du Breuil
f150cae75a
Plane: Allow center throttle to be trim airspeed in cruise
7 years ago
Michael du Breuil
ee96c53844
Plane: Don't go to minimum airspeed when in RC failsafe in cruise/fbwb
7 years ago
Michael du Breuil
8417bcc7d5
Plane: Add flight options bitmask
7 years ago
Tom Pittenger
518abfe1d0
Plane: Allow GUIDED mode to take advantage of crosstrack flag.
7 years ago
Tom Pittenger
746ca91649
Plane: reset groundspeed_undershoot value when GPS is lost
...
If we lose GPS lock the gndspd undershoot value gets stuck at the last calculated value forever (until GPS locks again)
7 years ago
Tom Pittenger
1ef0f27786
Plane: allow control_mode enum to be in arbitrary order
...
never use control_mode >= BLAH. This requires the order to be important which greatly increases chance for unexpected behavior
Closes https://github.com/ArduPilot/ardupilot/issues/4656
7 years ago
Tom Pittenger
39a200b83f
Plane: allow control_mode enum to be in arbitrary order
...
never use control_mode >= BLAH. This requires the order to be important which greatly increases chance for unexpected behavior
Closes https://github.com/ArduPilot/ardupilot/issues/4656
7 years ago
Michael du Breuil
1a3ca43e86
Plane: Don't check FS_SHORT_TIMEOUT if it's disabled
...
Also renames the check_minimum_altitude() to reflect that it's only used
for FBWB.
7 years ago
Tom Pittenger
7271586a47
Plane: invert auto_state.no_crosstrack flag to be auto_state.crosstrack. Non-functional change
7 years ago
Andrew Tridgell
f14f40d3ef
Plane: fixed GUIDED loiter with Q_RTL_MODE=1
...
this was broken by the recent RTL_RADIUS changes
thanks to Nick for noticing this!
7 years ago
Andrew Tridgell
aa430a6e2c
Plane: use RTL_RADIUS for QRTL threshold
...
when Q_RTL_MODE=1 in a quadplane use RTL_RADIUS as the distance to
switch to QRTL mode. We navigate to the destination using direct
waypoint navigation instead of using a loiter circle.
7 years ago
Andrew Tridgell
c24ee9192b
Plane: prevent a float exception at pitch 90
...
this can happen with a tailsitter
7 years ago
Andrew Tridgell
178e7eca54
Plane: always setup target airspeed
...
this sets up a target airspeed even when flying without an airspeed
sensor. This is needed for quadplanes without airspeed sensors where
we use synthetic airspeed during the transition in TECS
8 years ago
Peter Barker
250f315678
Plane: eliminate gcs_send_mission_item_reached wrapper
8 years ago
Andrew Tridgell
92f88e9b33
Plane: fixed climb rate for quadplanes in CRUISE
...
the high loop rate of quadplanes led to less than 1cm/loop change in
height, which got truncated to zero. Adjusting height at 10Hz fixes
that.
Thanks to Marco for reporting this!
8 years ago
Tom Pittenger
4ccd59f394
Plane: allow exiting loiter_to_alt in cases where you get stuck
...
- check for scenarios where updrafts can keep you from loitering down indefinitely.
8 years ago
Michael du Breuil
2326eee9a0
Plane: Move loiter_radius to vehicle
8 years ago
Tom Pittenger
61bc0a6206
Plane: check stage==LAND instead of landing.in_progress
8 years ago
Michael du Breuil
3e66dd10d7
Plane: Move landing stages inside AP_Landing and refactor
8 years ago
Randy Mackay
c3b6fd4315
Plane: fix suppressing comment for case fall through
...
No functional change
eclipse stops complaining if no-break is used in place of fall-through
8 years ago
Tom Pittenger
696828c144
Plane: increase landing airspeed scaled to headwind
8 years ago
Tom Pittenger
ac1dced3bf
Plane: set landing params as private and use accessors
8 years ago
Tom Pittenger
8a5a62cfdc
Plane: migrate aparm "LAND_" params from plane to AP_Landing
8 years ago
Tom Pittenger
f556f705e6
Plane: move various g params to aparms
8 years ago
Tom Pittenger
896b931a7c
Plane: Move auto_state variables to AP_landing members
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago