Tom Pittenger
ec3e9014e4
Plane: move target land_airspeed logic to top layer
...
- this is to allow min groundspeed to be enforced which is otherwise lost when TECS assigns a target airspeed at the lower level
9 years ago
Andrew Tridgell
a7006a7784
Plane: refactor perf variables into a structure
9 years ago
Michael du Breuil
c17ea21a97
Plane: Add support for DO_REPOSITION via COMMAND_INT
...
also allows guided to change loiter directions
9 years ago
Andrew Tridgell
62574b35b5
Plane: fixed negative loiter radius values
9 years ago
Tom Pittenger
ff57884eca
Plane: renamed variable, non-functional change
9 years ago
Andrew Tridgell
f0eddd6366
Plane: ensure we always eventually capture a loiter
9 years ago
Andrew Tridgell
d7d528560d
Plane: don't start summing for loiter until we reach loiter circle
9 years ago
Tom Pittenger
ff249788bf
Plane: add a default Navigation option as explained in the param docs
9 years ago
Tom Pittenger
9e452838ab
Plane: loiter missions to default to loiter_radius if mission says 0 or 1.
...
- except loiter_unlim which uses RTL_loiter, although I'm not sure why.
9 years ago
Andrew Tridgell
23eef91c59
Plane: added parameter RTL_RADIUS
...
this allows the loiter radius for RTL to be controlled separately from
the radius for loiter (as requested by a user)
9 years ago
Tom Pittenger
7978872e32
AP_Plane: set path_propportion in TECS
9 years ago
Tom Pittenger
d18c25a0f9
Plane: add item_reached_msg to GUIDED
9 years ago
Jonathan Challinger
05eb723429
Plane: reflect renamed function in AP_AHRS
9 years ago
Tom Pittenger
178bbb080b
Plane: improve crosstrack error while navigating to loiter point
...
There is no crosstrack concept in the loiter navigation so when going from waypoint to loiter you will not converge onto the line between those two points. This commit adds crosstracking by performing normal waypoint navigation until you get near it.
9 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
Andrew Tridgell
8395b92309
Plane: revert AP_Math class change
10 years ago
Tom Pittenger
c2eeed7d85
Plane: compiler warnings: apply is_zero(float) or is_equal(float)
10 years ago
Andrew Tridgell
664c92fb81
Plane: fixed RUDDER_ONLY to not combine direct rudder output
...
this prevents us over-rolling in FBWA
10 years ago
Andrew Tridgell
ae96a48efc
Plane: use location_path_proportion()
...
this should produce better glide slopes when the aircraft is off
course
10 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
55e7f9b1d6
Plane: calculate next_turn_angle to prevent early WP completion
...
this should help for ball drop and camera trigger with straight line
runs
11 years ago
Andrew Tridgell
69b5f352f6
Plane: prevent a bad glide slope when first entering auto
...
we need to ensure that prev_WP_loc is not used as it could be
completely different from current_loc. As a precuation, this also sets
up next_WP_loc so that when the set_next_WP() is first called that
prev_WP_loc is set to current_loc
11 years ago
Andrew Tridgell
0991af86f3
Plane: removed some usused code
...
setting up flight modes by CLI is not used any more
11 years ago
Andrew Tridgell
f51478ee1d
Plane: fixed LOITER_TURNS counter for counter-clockwise loiter
...
thanks to Iskess for finding this bug!
11 years ago
Andrew Tridgell
12012c9530
Plane: fixed a potential numerical error close to waypoints
11 years ago
Andrew Tridgell
e19341ca32
Plane: convert to new GPS driver API
11 years ago
Andrew Tridgell
861523a00a
Plane: use TECS get_target_airspeed()
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
Andrew Tridgell
035ac3800a
Plane: use G_Dt for acro angle integration
...
also cleanup some other uses of performance timing
11 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
233b033e8c
Plane: removed old speed/altitude control algorithms
...
Use TECS only. This makes the code a lot simpler and easier to
properly document
12 years ago
Andrew Tridgell
965dc228c2
Plane: fixed GUIDED mode change of altitude down
12 years ago
Andrew Tridgell
608345415b
Plane: pass aircraft parameters to attitude controllers
...
also cope with rename of airspeed min/max variables
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
12 years ago
Andrew Tridgell
113bc20f8a
Plane: added a new CRUISE flight mode
...
See
http://diydrones.com/group/apmusergroup/forum/topics/feature-request-hold-heading-mode
this fixes issue #438
12 years ago
Andrew Tridgell
73928b82a6
Plane: fixed FBWB airspeed control
...
thanks to Gabor for reporting this!
12 years ago
Andrew Tridgell
7aa360b176
Plane: added relative_altitude helper functions
...
prevents some code duplication
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
a5bda3ffef
Plane: changed to using a "aircraft parameters" structure
...
this structure can be passed to libraries to give them easy access to
critical user parameters
12 years ago
Andrew Tridgell
93cd0f9a31
Plane: switch to new AP_Scheduler
...
this gives us more accurate task scheduling in ArduPlane, plus better
monitoring of task timing (via SCHED_DEBUG)
12 years ago
Andrew Tridgell
fb9bf21522
Plane: allow channel mapping of first 4 channels
...
this makes it easier to support DSM and SBUS radios
12 years ago
Andrew Tridgell
55f7d18979
Plane: avoid copying the DCM matrix
12 years ago
priseborough
3663426550
Plane: Fixed bug in groundspeed_undershoot that could cause a fly-away in windy conditions.
...
Use the component of velocity in the forward direction rather than the magnitude
12 years ago
Andrew Tridgell
75f4a43e2d
Plane: fixed LOITER_TURNS command
...
and cleanup more loiter variables
12 years ago
Andrew Tridgell
994d8e354a
Plane: allow for negative WP_LOITER_RAD for conter-clockwise loiter
...
this follows the same convention as missions
12 years ago
priseborough
70a186464b
Plane: added LEVEL_ROLL_LIMIT parameter
...
this replaces both TKOFF_HEAD_HOLD and RUDDER_STEER, allowing users to
instead select a roll limit for takeoff and landing
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