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
Andrew Tridgell
57e0eb4db5
Plane: use a const reference for home
11 years ago
Andrew Tridgell
11337ab2df
Plane: updates for AHRS holding home position
11 years ago
Michael Day
c87d72353f
Plane: Introducing FENCE_RETALT parameter.
11 years ago
Andrew Tridgell
72473e4317
Plane: use AP_HAL available_memory() call
11 years ago
Andrew Tridgell
4f242aedec
Plane: fixed a bug where mode would not revert on geo-fence disable
...
the mode would not revert if the switch was in position 0
11 years ago
Michael Day
dcfed13c87
Plane: Fence breach now sends to correct return point in Guided Mode.
11 years ago
Andrew Tridgell
58b767b8e4
Plane: rename geofence structure
...
makes using gdb easier as it doesn't mix up the structure and the
pointer
11 years ago
Andrew Tridgell
ec0c894306
Plane: use the projected position for geofencing and waypoints
12 years ago
Andrew Tridgell
f6688582a6
Plane: added FENCE_ACTION=3 behaviour
...
this makes it safer to enable the geofence as a receiver failsafe
mode. It retains manual throttle control, so if it triggers on the
ground due to the receiver losing signal from the transmitter then the
throttle can be kept low, preventing an unexpected takeoff.
12 years ago
Andrew Tridgell
a33573352e
Plane: fixes for updated AP_Math and AHRS APIs
...
Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
12 years ago
Andrew Tridgell
7c6dd0736e
Plane: use hal.storage for eeprom access
12 years ago
Pat Hickey
92b0c302f2
ArduPlane: Ported to AP_HAL
12 years ago
Andrew Tridgell
2324997e16
APM: added ALT_OFFSET parameter
...
useful to adjust for barometric pressure changes during a long flight
13 years ago
Andrew Tridgell
ded64fd9ea
APM: check for geofence fence total of 0
13 years ago
Andrew Tridgell
b4134de550
APM: ensure fence_total is positive
...
thanks to David Buzz for the suggestion
13 years ago
uncrustify
e212c152f7
uncrustify ArduPlane/geofence.pde
13 years ago
Andrew Tridgell
ffbd229841
APM: use AHRS position for geo-fence
...
this allows it to take account of dead-reckoning
13 years ago
Andrew Tridgell
817017658d
APM: implement FENCE_ACTION_REPORT
...
when FENCE_ACTION is set to FENCE_ACTION_REPORT a fence breach is
reported, but the flight mode is not changed
13 years ago
Andrew Tridgell
0584017aff
APM: expose change_command() and geofence_breached() to libraries
...
this makes a failsafe library easier
13 years ago
Andrew Tridgell
5bfd1200d6
APM: change variables to use _cm, _cd and _ms suffix for units
...
this makes it less likely that we mix up units
13 years ago
Andrew Tridgell
0b49ac0ed0
APM: fixed overflow in geofence code for altitudes above 327 meters
13 years ago