Michael du Breuil
ee96ec7f0d
Plane: Support new AP_Vehicle::set_mode
5 years ago
Michael du Breuil
8bfab6d2f2
Plane: Geofence, speed up the no fence checks if disabled
...
This just checks if we are going to early out on the fence because it's
disabled. This also saves us 60 bytes of flash space. This technically
is a behaviour change as it was possible to load the fence before while
disabled if there was an RC channel mapped to it. This defers that until
the fence will have an action. The advantage of this though is that it
speeds up the check that's done per loop in a quadplane for stick mixing
5 years ago
Michael du Breuil
562b155f63
Plane: Remove unused geofence enable reason
5 years ago
Michael du Breuil
7d8b114b24
Plane: Reduce size of GeoFenceState
...
Cuts it from 32 bytes to 28
5 years ago
Michael du Breuil
af0dfb6d8b
Plane: Remove unneeded state from geofence
5 years ago
Andrew Tridgell
5076058459
Plane: added FENCE_AUTOENABLE=3 option
...
this enables the fence when arming. If the vehicle is outside the
fence or it can't be enabled then arming fails
6 years ago
Tom Pittenger
0270c57530
Plane: massive refactor and creation of Mode class
6 years ago
Peter Barker
b258e89a2d
Plane: adjust for Location_Class and Location unification
6 years ago
Peter Barker
acafb0f3c1
Plane: adjust for location flags being moved out of union
6 years ago
Michael du Breuil
3e4288d604
Plane: Use RC_Channels instead of hal.rcin
7 years ago
Tom Pittenger
3d6cc59a6b
Plane: cleanup geofence warnings
7 years ago
Peter Barker
3b0a7703c4
Plane: eliminate gcs_send_message wrapper
8 years ago
Peter Barker
5a8f01c19c
Plane: use send_text method on the GCS singleton
8 years ago
Tom Pittenger
e709705ab8
Plane: describe flight stages without using specific stage name
8 years ago
Peter Barker
d40187fac7
Plane: correct compilation when geofence disabled
8 years ago
Tom Pittenger
c286ceba43
Plane: move enum FlightStages to AP_Vehicle::FixedWing
8 years ago
murata
ab99ea54eb
Plane: To nullptr from NULL.
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
Tom Pittenger
b187e1f9a6
Plane: add reason to set_mode()
9 years ago
Tom Pittenger
ca32bcc58d
Plane: add new flight mode AVOID_ADSB to mimic GUIDED
9 years ago
Michael Day
cdeef9d692
Plane: Fence breaches can go to RTL mode with new FENCE_ACTION setting.
9 years ago
Lucas De Marchi
8eb0b559f2
ArduPlane: avoid comparison between signed and unsigned
9 years ago
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
9 years ago
Luis Vale Gonçalves
b7f3782e4e
Plane: Text revisions
...
text revisions
9 years ago
lvale
e18181e5c2
Plane: Uniformization of severities
...
Plane uniformization of severities
9 years ago
Lucas De Marchi
84da1f5039
Rename gcs_send_text_P to gcs_send_text
9 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
squilter
583c087eca
Plane: update severities
10 years ago
Andrew Tridgell
49f7adcc80
Plane: re-enable geofencing on APM2
...
it only just fits ...
10 years ago
Andrew Tridgell
5511140f95
Plane: fixed fence return point on breach
...
this was broken by the recent guided mode changes. Thanks to Grant for
noticing!
10 years ago
Andrew Tridgell
b92c2409e4
Plane: added local millis() and micros() to reduce code size a bit
10 years ago
Andrew Tridgell
18c37935c9
Plane: convert from .pde to .cpp files
10 years ago
Michael Day
ee14678d2a
Plane: Allow disabling of only the fence floor.
10 years ago
Tom Pittenger
bd9b573969
Plane: Fix compile warnings
...
- const values declared as default double
- This is the first pass in fixing the warnings, trying to catch some low hanging fruit. All const double values are changed to float. For example: 1.0 is now 1.0f.
- Only except is in location.pde where some double stuff is happening
- I did not change the exponentials 1e7 type stuff which should be 1e7f. A different commit
10 years ago
Michael Day
0279fdb0de
Plane: Never trigger fence breach in LAND_FINAL flight stage.
10 years ago
Andrew Tridgell
9fff67ec89
Plane: update for APM_OBC API change
11 years ago
Andrew Tridgell
ce9b14f0c8
Plane: convert to using StorageManager
11 years ago
Andrew Tridgell
3e320d71ab
Plane: added TERRAIN_FOLLOW parameter
...
when enabled RTL, CRUISE and rally points will use terrain altitude
11 years ago
Andrew Tridgell
d18c00d6fc
Plane: split up altitude handling
...
this creates altitude.pde for altitude handling, getting ready to add
terrain following
11 years ago
Andrew Tridgell
1e2b644b1b
Plane: fix for HAL_GPIO_*
11 years ago
Michael Day
568fc9e6c9
Plane: Now using AP_Rally library.
11 years ago
Andrew Tridgell
95764f4d78
Plane: fixed allocation and reporting of fence status
...
prevent a false fence active report on boot, and prevent the fence
from loading when it is not needed. This saves about 200 bytes of ram
on APM2 for most users
11 years ago
Andrew Tridgell
14671d0bcd
Plane: fixed previous_mode error in geofence
...
when we were in MANUAL we would switch back to STABILIZE
11 years ago
Andrew Tridgell
61ebf365d9
Plane: fixed reverting modes when FENCE_SET_RALLY is enabled
...
we need to keep the guided destination we are using
11 years ago
Andrew Tridgell
8639676eb3
Plane: we need 5 points for a valid geofence
...
the first and last points need to be the same for it to be a closed
polygon
11 years ago
Michael Day
268b1e85a1
Plane: Changes needed prior to merging with master identified by Tridge.
11 years ago
Michael Day
f921d4fbac
Plane: FENCE_RET_RALLY param. Plane returns to rally point on breach.
11 years ago
Michael Day
25f23cf16c
Plane: Sends MAV_SYS_STATUS_GEOFENCE and also allows GCS to enable/disable fence.
11 years ago
Andrew Tridgell
4bf140aeac
Plane: make next_WP and prev_WP be locations
...
having a command ID in them doesn't really make sense
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Randy Mackay
9446e9fd2e
Plane: integrate AP_Mission library
11 years ago