Pierre Kancir
84ff9c6928
Copter: switch to pos control when takeoff finish
7 years ago
Peter Barker
22f7f29045
Copter: move all of waypoint-takeoff into Mode namespace
7 years ago
Peter Barker
11aeec6dd1
Copter: factor out auto_takeoff_run from auto and guided
...
This code was identical.
7 years ago
Peter Barker
078d90132c
Copter: use AP_RTC
...
Co-authored-by: patrickelectric@gmail.com
Copter: AP_GPS now sets the system time directly
Copter: use AP_RTC for mission delays
Copter: Remove ap_t bits counter (Patrick José Pereira)
Change bits in ap_t to bool and add a static assert
7 years ago
apinxiko
e440583a7c
Copter: Beeping when first reaching waypoint while in holding there
7 years ago
apinxiko
5df4b9f6fd
Beeping when first reaching waypoint even while in holding there
7 years ago
apinxiko
a1fd1cb9b2
Copter: avoid keeping buzzing while in holding at waypoint
7 years ago
Peter Barker
7c8583d51d
Copter: implement sending of position_target_global_int
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
Randy Mackay
59e4749fd0
Copter: integrate AC_Loiter
...
includes param conversion
7 years ago
Ebin
1ff4019ddf
ArduCopter: moved landing control fns from Copter to Mode
...
land_run_horizontal_control(),land_run_vertical_control(),get_alt_above_ground() moved to Mode
7 years ago
Bruno Camba
7b50517232
Copter: Moved commands_logic to mode_auto
...
Moved methods from commands_logic.cpp to
the mode_auto.cpp. Method order is
the same as declared in mode.h
7 years ago
Leonard Hall
9544b1763b
Copter: replace smoothing gain with AC_AttitudeControl::set_input_tc
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
5b7116bbbd
Copter: Fix else formating (NFC)
...
git history on these lines is not important, this is a simple else
7 years ago
Peter Barker
b9ad2bc8db
Copter: add option to disable AUTO mode
...
Saves ~12k of flash
7 years ago
Andrew Tridgell
0ed75052f8
Copter: enable parameters inside mode objects
...
this adds FHLD_* parameters for FlowHold mode. It is a large patch as
it needs to disentagle the mode class to enable it to be used in
Parameters.h
7 years ago
Peter Barker
114628afe4
Copter: use zero_throttle_and_relax_ac in stab, guided, acro and auto
7 years ago
Peter Barker
71ad1b5815
Copter: use zero_throttle_and_relax_ac function
7 years ago
Peter Barker
4c7491a05b
Copter: mode_auto's landing_gear_deploy method defers to mode_rtl
...
Since we defer our rtl_run behaviour to the RTL flightmode, it should
also specify the landing gear behaviour
7 years ago
Peter Barker
d9235d3d41
Copter: make landing_gear_should_be_deployed a base-class method
7 years ago
Peter Barker
6c82f7671d
Copter: move all commands logic into AUTO flightmode
7 years ago
Randy Mackay
2d23e1f7c7
Copter: rename flightmode_ objects to mode_
7 years ago
Randy Mackay
c3fbf2671c
Copter: rename control_xx.cpp files to mode_xx.cpp
7 years ago
Randy Mackay
06fbe8f3a7
Copter: rename FlightMode class to Mode
...
also remove unused print_FlightMode method
7 years ago
Randy Mackay
8870897847
Copter: FlightMode objects use lower case
7 years ago
Peter Barker
682f3c0e7e
Copter: FlightMode - convert RTL flight mode
7 years ago
Peter Barker
2db09ba0f7
Copter: FlightMode - convert GUIDED flight mode
7 years ago
Peter Barker
e2b70c3a0a
Copter: FlightMode - convert AUTO flight mode
7 years ago
Peter Barker
5b793252ed
Copter: stop disarming as part of running rtl as mission item
...
Fixed #6324
Note that the land-as-mission-item code is duplicated from the
rtl-as-mode code but omits the disarm part, so doesn't suffer from the
same bug.
7 years ago
Randy Mackay
c1433e0220
Copter: minor comment and formatting fixes
...
no functional change
8 years ago
Randy Mackay
4c9e118ceb
Copter: set_auto_yaw_look_at_heading takes bool for relative angle arg
...
No functional change
8 years ago
Randy Mackay
9b05f1d9c7
Copter: add auto-yaw-rate and replace guided_angle_state.use_yaw_rate
...
We use the auto_yaw_mode in auto and guided modes to allow various yaw behaviours
This commit adds a new AUTO_YAW_RATE control to the mode and uses it within guided mode.
This new RATE control is not currently used within auto mode because there is no way (yet) for a mission command to specify a desired rate.
8 years ago
Peter Barker
f60389d4aa
Copter: use send_text method on the GCS singleton
8 years ago
Randy Mackay
aab27d8d0e
Copter: auto loiter initialisation simplified
...
The simpler set_wp_destination can be used instead of set_wp_origin_and_destination
8 years ago
Randy Mackay
ebbfa9391d
Copter: remove comments from package place
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
Dr.-Ing. Amilcar Do Carmo Lucas
8419045aea
Spell in comments
8 years ago
Pierre Kancir
f2ea388a69
Copter: control_auto remove misplaced parenthesis
8 years ago
Peter Barker
289aba4350
Copter: support for NAV_CMD_PLACE
8 years ago
Randy Mackay
9426b0b366
Copter: set land_complete to false during auto takeoff
...
This resolves an issue in very high powered copters that could fly a mission while "landed" which could lead to a crash during the final stage of RTL
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
5894a54a16
Copter: althold uses current alt target if active
...
Previously we always reset the altitude target to the current altitude but this causes a jump if the vehicle is already in an alt-hold flight mode but has an altitude error
8 years ago
murata
57c61ace62
Copter: To remove a break after the return statement.
8 years ago
Andrew Tridgell
89c10a2db9
Copter: rename WP_TKOFF_NAV_ALT to WP_NAVALT_MIN
...
this is in preparation for using the same parameter for landing as
well
9 years ago
mirkix
e3934fac80
ArduCopter: Delete (wrong) filename out of header
9 years ago
Jonathan Challinger
e22220ab62
Copter: refactor landing to reduce duplication, use vertical vel ff
9 years ago
Andrew Tridgell
3a8ed06267
Copter: added TKOFF_NAV_ALT parameter
...
this adds TKOFF_NAV_ALT which controls the altitude above takeoff that
navigation can begin. It is meant for unstable vehicles such as helis
to prevent blade strike during initial takeoff.
This also adds a new parameter class ParametersG2 which can hold 64
parameters. This is to avoid running out of parameters in the first
256 block
9 years ago
Jonathan Challinger
91a5b26725
Copter: use simplified precland interface
9 years ago