Peter Barker
4586b892f2
Plane: pass log-performance-bit at init time rather than update time
7 years ago
Peter Barker
8cae776448
Plane: move logging of PM and PERF messages to AP_Scheduler
7 years ago
Peter Barker
02540fdbf9
Plane: use AP_Scheduler's loop() function
7 years ago
Peter Barker
73092c3c30
Plane: use scheduler ticks in place of mainloop_count
7 years ago
Peter Barker
519e6c31d2
Plane: use AP::PerfInfo library
7 years ago
Randy Mackay
dd6755f486
Plane: fix global-pos-int velocity direction to NED
7 years ago
Andrew Tridgell
2fb6113098
Plane: use AP:PerfInfo class
7 years ago
Andrew Tridgell
ac196b8e0a
Plane: fixed build error
7 years ago
Tom Pittenger
50a2d824c4
Plane: crash detection hard landing detection should skip debounce
...
closes https://github.com/ArduPilot/ardupilot/issues/7683
7 years ago
Andrew Tridgell
d1e11a5bde
Plane: fixed build (remove learn_offsets call)
7 years ago
Michael du Breuil
43972f8e56
Plane: Move battery logging code to AP_BattMonitor
7 years ago
Randy Mackay
ddcd08d6b6
Plane: PSC_ACCZ param name shortened
7 years ago
Michael du Breuil
aec7521da4
Plane: Fix truncation of a time interval
...
Truncating the a millisecond time delta to uint16_t causes it to wrap
every 65 seconds, which could momentarily reset the desired climb rate
7 years ago
Randy Mackay
d579e086cf
Plane: quadplane param index comment for moved PIDs
7 years ago
Andrew Tridgell
20b05e4228
Plane: added conversion code for PID layout change
...
this copes with the move of multicopter PIDs inside the position
controller
7 years ago
Tom Pittenger
518abfe1d0
Plane: Allow GUIDED mode to take advantage of crosstrack flag.
7 years ago
Randy Mackay
7b1157e2d8
Plane: remove setting accel_z PID controller's dt
...
This is handled within pos-controller's set_dt function
7 years ago
Randy Mackay
f41f4dc6e5
Plane: move pos-control pids to pos-control library
7 years ago
Randy Mackay
017e71a748
Plane: quadplane velocity pi moves to position control library
7 years ago
Michael du Breuil
ff85f5e9bd
Plane: Support AP_BattMonitor_Params
7 years ago
Andrew Tridgell
5614fd1ccc
Plane: use calloc in preferance to malloc
7 years ago
Andrew Tridgell
2c6a004a67
Plane: mark version as 3.9.0-dev
7 years ago
Andrew Tridgell
be0d2229c1
Plane: update release notes
7 years ago
Andrew Tridgell
31d7d9f909
Plane: change airspeed parameter prefix
...
this makes for clearer parameter names with dual sensors
7 years ago
Andrew Tridgell
c1cbbf9203
Plane: check all airspeed sensors are healthy
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
Peter Barker
c4c6b3cc70
Plane: AP_AHRS no longer requires GPS in constructor
7 years ago
Peter Barker
c5ae01fc6d
Plane: use GPS singleton
7 years ago
luweikxy
25224cd261
Plane: remove dead code from do_vtol_land
7 years ago
Andrew Tridgell
30e224e705
Plane: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Michael Oborne
9ed3ca3d35
ArduPlane: update version number
7 years ago
Ubuntu 16.04 VM
624aef401d
Plane: Enforce THR_MIN/THR_MAX in VTOL modes
7 years ago
Tom Pittenger
512b327cd4
Plane: failsafe events to use enums instead of magical numbers : Non-functional change
7 years ago
Peter Barker
af007c5f0f
Plane: tighten handleMessage result type
7 years ago
Tom Pittenger
3d6cc59a6b
Plane: cleanup geofence warnings
7 years ago
Andrew Tridgell
2a81792b41
Plane: don't disable compass on one bad reading
...
the compass can go back for a short time and recover
found by Michael
7 years ago
Andrew Tridgell
49cb245ea6
Plane: use a min airspeed for is_flying test
...
in VTOLs setting min airspeed to zero can be useful
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
Peter Barker
6ed0d645a3
Plane: support for units on fields
7 years ago
Guy Tzoler
a6c7890c74
Plane: use cork/push wrapper
7 years ago
Michael du Breuil
9720fcb8cc
Plane: Only update home when not armed, rather then not soft armed
...
Plane supports being armed, in takeoff logic and not spinning the motor
until the moment the safety button has been pressed. Unfortunately
because the safety button is required to be pressed for soft arming this
results in the plane updating home position while the user moves the
vehicle or is holding it to throw the vehicle which will can result in
several meters of altitude error from where the user expected home to
be.
Because the normal approach to plane is to have activated the safety
button before arming the aircraft this is not expected to be a behaviour
change for most users, but an improvement for people who use the button
to initiate a takeoff.
7 years ago
Andrew Tridgell
f7a735b990
Plane: fixed transitions for tailsitters after auto-takeoff
...
need to use angle wait
7 years ago
Andrew Tridgell
85573b3ff3
Plane: fixed a division by zero
...
if min airspeed is zero
7 years ago
Andrew Tridgell
e06f160dc9
Plane: disable rudder scaling in tailsitters
...
this is most often implemented as dual-motor differential thrust, and
we don't want to do surface speed scaling for that.
In the future we'll move this scaling so it can be done on rudders for
3D planes
7 years ago
Peter Barker
ee5f550475
Plane: AP_Camera uses GPS singleton
7 years ago
Peter Barker
b4294c00f6
Plane: use gps singleton for GCS functions
7 years ago
André Kjellstrup
1d27e21d83
Plane: Option to trig by distance only when in AUTO mode
7 years ago