Andy Piper
11a5c8d2a4
Copter: nuke clang warnings
3 years ago
Josh Henderson
3107c42fca
Copter: INAV rename for neu & cm/cms
3 years ago
Shiv
4a39424d6b
Copter: added comments to include libraries in copter.h and attitude.cpp
...
fixed typo in a comment and added more comments for included libraries in copter.h and fixed a comment in attitude.cpp
4 years ago
Leonard Hall
4bae8f03a4
Copter: Use PosControl fixes
4 years ago
Iampete1
c0cf814d3e
Copter: disable hover throttle learn in standby mode
4 years ago
Peter Barker
dc793e916f
Copter: move implementation of get_pilot_desired_yaw_rate into mode.cpp
4 years ago
Tatsuya Yamaguchi
0cce5699b2
Copter: change from control_mode to flightmode
4 years ago
Ryan Birmingham
c2cdb00f85
Copter: constrain throttle before setting deadband
4 years ago
Patrick José Pereira
ad82e01270
ArduCopter: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
bnsgeyer
42b4fd6e0a
Copter: change heli integrator management and add hover coll learning
4 years ago
Peter Barker
afa153fb6f
Copter: remove wrapper for get_avoidance_adjusted_climbrate
...
Only the modes are interested in this - there's no point having it on
the Copter object.
5 years ago
Peter Barker
d87986ecdd
Copter: move set_throttle_takeoff implementation into Mode
...
No callers except the mode objects, so move it.
5 years ago
Leonard Hall
1a4e96b4ba
Copter: Fix Rate expo calculation
...
This fixes a bug in the yaw rate expo and makes these changes consistent with roll and pitch rate expo.
5 years ago
Andy Piper
4c1816a983
Copter: port betaflight in-flight fft analysis to arducopter and expose as a log message
...
add harmonic notch tracking mode
call AP_GyroFFT::update_freq_hover() from update_throttle_hover()
move gyrofft configuration and control to AP_Vehicle
move fft logging to fft library
5 years ago
Randy Mackay
d41e7dcbee
Copter: move surface tracking implementation to surface_tracking.cpp
5 years ago
Andrew Tridgell
328fff8585
Copter: fixed RC failsafe handling for no RC receiver
...
this stops us using uninitialised values in modes like circle which
can operate either with or without RC input. If we didn't have a RC
receiver attached then they would use a maximum yaw rate (which
produces quite a spectacular result for a tuned up racing quad)
5 years ago
Peter Barker
0031deb175
Copter: correct abs vs fabsf usage in Attitude
5 years ago
Peter Barker
b4537bebd8
Copter: move control_mode_t into being Mode::Number enum class
...
Fixes this compiler error:
In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
AUTO, // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
AUTO = 3, // fully automatic waypoint control using mission commands
^
1 error generated.
5 years ago
Peter Barker
c0e8d319c6
Copter: make surface tracking adjust_climb_rate take a float
...
Its callers all pass in floats and we return a float, so stop going via
an int16_t
6 years ago
Peter Barker
b0428f0fe8
Copter: make surface_tracking a class, various functions methods
6 years ago
Randy Mackay
01909cf4c8
Copter: zigzag mode gets terrain following support
6 years ago
Randy Mackay
89eb876faf
Copter: move surface tracking variables into structure
6 years ago
Randy Mackay
33a57361bd
Copter: reduce args passed to get_surface_tracking_climb_rate
...
The same arguments are always passed in
6 years ago
Randy Mackay
a732dfed6d
Copter: minor format fixes to get_pilot_desired_cilmb_rate
6 years ago
Peter Barker
8441542a52
Copter: remove climb_rate cache of inertial_nav.get_velocity_z
...
There were only two users of it and dozens of places using
get_velocity_z
6 years ago
Peter Barker
c1c71fec23
Copter: move Mode functions into mode.cpp from Attitude.cpp (NFC)
6 years ago
Peter Barker
34d9ce27af
Copter: make get_pilot_desired_throttle a method on Mode
6 years ago
Michael du Breuil
7e1ed948f5
Copter: Cope with AC_PosControl renaming
6 years ago
Randy Mackay
b5d722245a
Copter: minor comment fix
7 years ago
Peter Barker
4e3bbe9311
Copter: move sanity check for rangefinder alt to within protected func
...
get_surface_tracking_climb_rate can do an additional check....
7 years ago
Peter Barker
ab68e4fe8b
Copter: log quiet-nan for rangefinder-desired-alt when not using it
7 years ago
Peter Barker
8648db06b4
Copter: create autoyaw.cpp from all the bits of Copter::Mode::AutoYaw
7 years ago
Peter Barker
948b90ed97
Copter: rename roi_WP to just roi
...
A Vector3f is not a waypoint.
This should really be "Point Of Interest" rather than "Region Of
Interest"
7 years ago
Peter Barker
ba8b3e2415
Copter: create an AutoYaw helper object to hold auto-yaw state
7 years ago
Leonard Hall
9544b1763b
Copter: replace smoothing gain with AC_AttitudeControl::set_input_tc
7 years ago
Ebin
20995b909f
Copter: Moved get_pilot_desired_lean_angles to mode.cpp
7 years ago
Andrew Tridgell
af4f0c29ba
Copter: enable TMODE (ToyMode) support
...
this is for the skyviper button based transmitter control
7 years ago
Randy Mackay
8d6f8e4d9c
Copter: move pos-control pids to pos-control library
7 years ago
Randy Mackay
e85b1ac740
Copter: pass dt to avoidance calls
7 years ago
Peter Barker
7b637334f4
Copter: eliminate mode_has_manual_throttle
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
bd027e4fcb
Copter: Move some common functions to AP_Math (NFC)
7 years ago
ChrisBird
caaeae3d0a
Copter: Separate max ascent and descent speeds
...
Added equivalent parameters to WPNAV_SPEED_UP and WPNAV_SPEED_DN
New parameters named:
PILOT_SPEED_UP (technically renamed PILOT_VELZ_MAX)
PILOT_SPEED_DN
Removed parameter PILOT_VELZ_MAX (technically renamed to PILOT_SPEED_UP).
Flight Modes impacted:
ALTHOLD
AUTOTUNE
CIRCLE
LOITER
POSHOLD
SPORT
TAKEOFF
Update a section in GUIDED mode but I don't think it is ever used but update just in case.
It will use the PILOT_SPEED_UP for ascending max velocity. For down it will check if
it is 0, if so then it will PILOT_SPEED_UP instead, if non zero it will use PILOT_SPEED_DN.
This retains current behavior and gives the flexibility to change it if desired.
7 years ago
Peter Barker
1d70a337dd
Copter: remove unused desired_climb_rate variable
8 years ago
Randy Mackay
cb1f7ba4bb
Copter: remove setting position control's altitude max
...
AC_Avoid now takes responsibility for enforcing the alt limit and accesses inertial nav's limit directly
8 years ago
Randy Mackay
b15d341850
Copter: add avoidance adjusted climb rate
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
Andrew Tridgell
bcea3ac8d4
Copter: handle rangefinder glitches in alt tracking
...
this handles glitches from the rangefinder when tracking the
ground. It requires 3 readings in a row to settle on a new target
altitude
thanks to discussions with Leonard and Randy
8 years ago
Leonard Hall
0a6714f4ae
Copter: rename variable ROLL_PITCH_YAW_INPUT_MAX
...
No functional change
8 years ago
Leonard Hall
2698f14d39
Copter: apply yaw expo to all modes
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