Andrew Tridgell
61dd04ccb5
Plane: auto-update home and baro calibration when disarmed
...
this takes advantage of the PX4 arming state to ensure position and
baro calibration is updated
12 years ago
Andrew Tridgell
c8a83e17d0
Plane: remove old AIR_START code
...
this was never used or tested
12 years ago
Andrew Tridgell
3c97fad2ec
Plane: changes for GPS field changes
12 years ago
Andrew Tridgell
1d6748cf3f
Plane: use a glide slope in RTL when descending
...
when above the target altitude in RTL come down slowly, when below
climb rapidly
This fixes issue #39
12 years ago
Andrew Tridgell
e446f375a7
Plane: set loiter.direction for GUIDED mode
12 years ago
Andrew Tridgell
11eb0cfce1
Plane: update for new AP_Navigation controller class
...
this switches ArduPlane over to use the L1 navigation controller, via
a generic nav_controller object pointer.
Note that the nav_controller controls all types of navigation now,
including level flight and heading hold. This provides a cleaner
abstraction than the old method of special case navigation handling
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
12 years ago
tobias
217b8d7a59
cleanup: use const for struct Location pointers and references
...
this allows the compiler to generate more efficient code
12 years ago
Andrew Tridgell
8c0f065ee4
Plane: fixed an integer multiply error that caused poor altitude on landing
...
the control of altitude between waypoints was broken due to an integer
overflow
12 years ago
Andrew Tridgell
3913c42183
Plane: fixed bit combination
...
bitwise, not arithmetic
12 years ago
Jochen Tuchbreiter
c5f19f5df8
Plane: Implement issue 80: counterclockwise loiter
...
- libraries/AP_Common/AP_Common.h: Use bit 2 of Location.options to store
loiter direction
- ArduPlane/defines.h: New bitmask MASK_OPTIONS_LOITER_DIRECTION for struct
Location bit 2
- ArduPlane/ArduPlane.pde: New variable loiter_direction
- ArduPlane/GCS_Mavlink.pde: For mavlink loiter-commands use sign of param3 to
detemine direction. Set Location.option flag accordingly
- ArduPlane/commands.pde: Make sure loiter-directions get saved into EEPROM
correctly
- ArduPlane/commands_logic.pde: Set loiter_direction on all loiter-actions
as well as RTL/instant loiter
- ArduPlane/navigation.pde: Yield loiter_direction in update_loiter
12 years ago
Andrew Tridgell
cf18534163
Plane: use new functions
12 years ago
Andrew Tridgell
7c6dd0736e
Plane: use hal.storage for eeprom access
12 years ago
Andrew Tridgell
805a340350
Plane: enable attitude and raw logging in HIL modes
12 years ago
Andrew Tridgell
0bc1f89f27
APM: fixed typo
13 years ago
Andrew Tridgell
c9f10f0e00
APM: fixed auto-takeoff with zero lat/lng
...
consider a non-zero altitude to mean that we should use the relative
altitude specified
13 years ago
Andrew Tridgell
764d86216e
APM: fixed mission reset by setting waypoint to zero
...
this does a full mission reset (equivalent to rebooting)
13 years ago
Andrew Tridgell
e2779523ea
APM: fixed fetch of relative altitude waypoints
...
when we fetch relative altitude waypoints from APM to a file, we need
to preserve the altitude
13 years ago
Andrew Tridgell
cde7d8c5e7
APM: fixed some compiler warnings
13 years ago
Michael Oborne
1e7adac365
AP fix attitude hil.
...
we where waiting on new_data that had no way of getting there.
13 years ago
uncrustify
ff4afa767b
uncrustify ArduPlane/commands.pde
13 years ago
rmackay9
6d489947cf
ArduPlane: replaced many "int" with "int16_t", "long" with "int32_t"
13 years ago
Andrew Tridgell
5631b90222
APM: interpret zero lat/lng as being current location
...
this makes it easy to have a "loiter in current position" mission
element
13 years ago
Andrew Tridgell
dc99586981
APM: removed pointless load() call
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
9e72d4c3f4
APM: fixed a problem with wayoints completing early
...
when a user forces a waypoint jump, we may need to reset prev_WP to
prevent us thinking the waypoint is complete before we have started
13 years ago
Andrew Tridgell
58fd91165f
APM: fixed some build warnings and type errors
13 years ago
Andrew Tridgell
6ee9f1ae97
APM: use new location functions
13 years ago
Andrew Tridgell
c042ef1298
APM: fixed some build warnings
13 years ago
Andrew Tridgell
407d66b41e
fixed a valgrind warning
...
need to initialise all fields
13 years ago
Michael Oborne
374f8cbcd0
better crosstrack
13 years ago
Michael Oborne
835b585e03
APM track following change
13 years ago
Doug Weibel
cbf59e96bd
Bug fixes for command logic re-write
13 years ago
Doug Weibel
645b9c1d48
Initial rewrite of command logic.
...
Changes mission structure so that conditional and immediate commands are located between associated waypoints instead of after the second waypoint.
13 years ago
Andrew Tridgell
20bfe6b01d
use gcs_send_text_fmt() and cleanup a few old debug lines
14 years ago
Andrew Tridgell
66e4ae50bb
remove some more old cruft
14 years ago
Andrew Tridgell
e61d742345
GCS: make the two GCS links gcs0 and gcs3
...
the artifical separation between 'gcs' and 'hil' just leads to
confusion. This also simplifies the code a bit more, and saves us a
bit more text
14 years ago
Andrew Tridgell
3f37cce6c7
remove unused MESSAGE_COMMAND_LIST
14 years ago
Amilcar Lucas
b7a0d8836a
This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port
14 years ago
Andrew Tridgell
609ae8359d
import APM_Camera branch from SVN
14 years ago
Andrew Tridgell
e0dc1271d6
imported ArduPlane from ArduPilotMega svn
14 years ago