Randy Mackay
32fb3cb929
Copter: remove unused update_navigation and run_autopilot
4 years ago
Pierre Kancir
5987966ac6
ArduCopter: move get_bearing_cd to Location and rename to get_bearing_to
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
08124faab4
Copter: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Pierre Kancir
1aeb9446c0
Copter: simplify home distance and bearing calculation
7 years ago
Randy Mackay
2c0df87585
Copter: Copter.h method reordering
7 years ago
Peter Barker
5d33cf08e1
Copter: eliminate calc_home_distance_and_bearing
...
Calling update_simple_mode_bearing calls get-heading
rather than the other way around
This will have the advantage of not calculating home bearing
when we stop calling update_simple_mode_bearing unnecesarily
7 years ago
Peter Barker
103e2cc711
Copter: calculate wp bearing and distance on demand
...
Move responsibility for calculating wp bearing/distance
into the FlightMode object doing the navigation
Calculating these variables was being done at 50Hz where they
were used at 10Hz max.
7 years ago
Peter Barker
2db09ba0f7
Copter: FlightMode - convert GUIDED flight mode
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
2235b22510
Copter: Also report distance and bearing to target in Guided_PosVel mode
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
bd027e4fcb
Copter: Move some common functions to AP_Math (NFC)
7 years ago
squilter
4b57a4a231
Copter: rename SafeRTL to SmartRTL
8 years ago
Randy Mackay
8df042f00c
Copter: complete addition of SafeRTL flight mode
8 years ago
Lucas De Marchi
be402374ea
ArduCopter: use FALLTHROUGH define
...
When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
murata
f747716172
Copter: Changed if statements to switch statement.
...
Copter: Correct the processing in Guided mode.
Copter: Insert white space.
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
Randy Mackay
13c26eab67
Copter: update current_loc at 400hz
9 years ago
Randy Mackay
2e6b6e473a
Copter: fix home_distance calculation
...
Distance was calculated vs EKF origin instead of AHRS home
10 years ago
Andrew Tridgell
278883c521
Copter: finished conversion to .cpp files
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
10 years ago
Andrew Tridgell
356ece3402
Copter: rename .pde files to .cpp files
10 years ago
Randy Mackay
9e156d2f81
Copter: always update current_loc regardless of inav state
...
If inertial nav is not initialised these will be set to zero anyway
10 years ago
Jonathan Challinger
2cb63dc792
Copter: don't assume home is at the origin
10 years ago
Randy Mackay
cc52bbbffb
Copter: update current loc once home is set
10 years ago
Randy Mackay
199dc3454d
Copter: replace GPS_ok with position_ok
...
position_ok uses the EKF's filter status if the EKF is being used
otherwise it falls back to the GPS based checks used by inertial nav
10 years ago
Randy Mackay
a4f71e5946
Copter: replace inav's position_ok with get_filter_status
10 years ago
Randy Mackay
f54a13f24b
Copter: report NAV_CONTROLLER_OUTPUT in RTL, Guided
...
This allows the GCS to display to the user where the vehicle is flying
to in RTL and Guided flight modes
10 years ago
Randy Mackay
817c893f21
Copter: bug fix for conditional_distance command
...
Due to a race condition, the wp_distance was not being updated before
the conditional_distance
11 years ago
Randy Mackay
359f1a27ec
Copter: process cmds from mission lib
11 years ago
Randy Mackay
174318a2a9
Copter: remove set_nav_mode
11 years ago
Randy Mackay
1f07c2efe0
Copter: remove old circle
11 years ago
Randy Mackay
d70862e44b
Copter: remove case that does nothing
11 years ago
Randy Mackay
dc6f622d48
Copter: move NTUN logging to 10hz loop
11 years ago
Randy Mackay
0a2adbac1b
Copter: renaming functions after moving xy control
11 years ago
Randy Mackay
5fd9410ff5
Copter: much renaming as xy pos controller moves
11 years ago
Randy Mackay
aaa62eeb28
Copter: integrated simpler init loiter from WP_Nav
11 years ago
Randy Mackay
8f5585423c
Copter: use ahrs trig values
11 years ago
Randy Mackay
a744658b47
Copter: combine nav_roll and control_roll
...
Control_roll, control_pitch now always hold the desired lean angle
whether it be from the pilot or autopilot.
11 years ago
Randy Mackay
03831cdd28
Copter: GPS ok only when not glitching
...
Removed redundant checks to GPS_ok before setting flight mode to RTL
(this check is already performed inside the set_mode function)
Removed reset of home distance and bearing when GPS lock is lost, it now
remains at the last known value
11 years ago
Jason Short
520a535c21
Copter: TOY mode updates
11 years ago
Randy Mackay
0c0de7c53e
Copter: simple mode speedup
...
super simple and simple mode headings separated
g.super_simple converted into a bitmap by flight mode switch position
12 years ago
Randy Mackay
b7579bb028
Copter: move init of global nav variables to set_nav_mode
12 years ago
Randy Mackay
45aeb1a921
Copter: split up loiter into 4 steps
...
Reduces disruption to the main loop but also introduces a delay of 30ms
to navigation output
12 years ago
Randy Mackay
05248738e2
Copter: bug fix for take-off in loiter
12 years ago
Randy Mackay
c3daf78340
Copter: reset loiter target when landed
12 years ago
Randy Mackay
02b64e259d
Copter: bug fix for descent during loiter_turns
12 years ago
Randy Mackay
345924ddec
WPNav: replace LOITER_ACCEL_MAX with parameter
...
Also removed unused _lean_angle_max variable
12 years ago
Randy Mackay
facd8fc89f
Copter: calculate home position and bearing when we have 2D Fix
12 years ago
Olivier-ADLER
f1bedc70ac
Copter: SuperSimple mode bug
...
SuperSimple bearing was updated without checking for GPS 3D Fix availability.
12 years ago
Randy Mackay
272f0e5032
Copter: reduce twitch when entering CIRCLE mode
...
Set loiter target and prev iterations velocity when circle mode is
started
Start circling from projected stopping point
12 years ago
Randy Mackay
1b08f12d53
Circle: allow counter clockwise rotation
12 years ago