Commit Graph

565 Commits

Author SHA1 Message Date
Peter Barker
9b64ca040d Copter: do not adjust trims while landed
Closes #1282

Also cancels autotrim if you change modes, disarm the vehicle or land
again.
2020-06-03 16:19:01 +10:00
Randy Mackay
680e417c2c Copter: remove unnecessary includes 2020-04-24 18:18:05 +09:00
Randy Mackay
04c3f040a8 Copter: visual odometry moved to AP_Vehicle 2020-04-09 19:41:08 +09:00
Randy Mackay
e2469d29bc Copter: implement start_takeoff and set_target_velocity_NED for use in scripting 2020-03-19 15:17:11 -07:00
Randy Mackay
a9630d67d1 Copter: implement set_target_location method 2020-03-03 10:06:38 -07:00
Randy Mackay
9a32b3bdd9 Copter: rename update_throttle_mix
was called update_throttle_thr_mix
also minor formatting fixes
2020-02-25 16:52:40 +09:00
Andrew Tridgell
dd5fafe30e Copter: added rangefinder height interpolated using inertial alt
this smooths rangefinder heights and allows for good estimated for
precision landing even with loss of some rangefinder samples during landing
2020-02-25 09:10:30 +09:00
murata
94901edaf2 Copter: Match the column of element description 2020-02-19 09:44:57 +09:00
Peter Barker
1424945c14 ArduCopter: remove unused compass_init_location state 2020-02-18 10:35:49 +11:00
Peter Barker
18670d681e Copter: let AP_Vehicle handle loop() 2020-02-06 14:41:06 +11:00
Peter Barker
9e8af48cce ArduCopter: move some common init_ardupilot code up to AP_Vehicle 2020-01-28 11:34:51 +11:00
Peter Barker
debedd9d34 Copter: move setup method up to AP_Vehicle base class 2020-01-28 11:34:51 +11:00
Peter Barker
9466126fa8 Copter: let AP_Vehicle base class worry about scheduler delay callback 2020-01-21 11:37:28 +11:00
Andrew Tridgell
4445313661 Copter: fixed build warnings 2020-01-18 17:19:07 +11:00
Andrew Tridgell
1fae2009db Copter: update for new SRV_Channels parameter conversion call 2020-01-14 14:23:11 +11:00
Tatsuya Yamaguchi
e01e924711 Copter: allow scripts to get modes 2020-01-14 11:16:29 +11:00
bnsgeyer
64f98622c0 Copter: fix tradheli RSC RC passthrough mode
Copter: heli get_pilot_desired_rotor_speed converts interlock input to desired rotor speed
2020-01-09 19:55:02 +09:00
Peter Barker
1ff07762de Copter: remove report_compass method
This wasn't actually responsible for saving offsets any more.

The data spewed out was rather unlikely to be seen, and will be present
in logs anyway.
2020-01-04 10:46:51 +09:00
Peter Barker
2694560c38 Copter: generally unseen remove report_version
This won't generally be seen or useful to anyone
2020-01-04 10:46:51 +09:00
Peter Barker
326a569ea8 Copter: remove dangling read_control_switch method declaration 2020-01-02 10:13:35 +09:00
Randy Mackay
3e7fb66a77 Copter: precision landing does not use terrain database
precision landing was always only using the range finder, there was no use of the provided alt unless the rangefinder was good
2019-12-17 20:02:01 +09:00
Randy Mackay
f768e80458 Copter: remove unused prev_control_mode_reason 2019-12-12 09:13:24 +09:00
Peter Barker
544eb5f179 Copter: correct duplicate button instance 2019-12-10 09:29:52 +09:00
Peter Barker
62869b5be8 Copter: vehicle parent class now instantiates AHRS 2019-12-02 09:16:22 +11:00
Gone4Dirt
180d4e713c Copter: Added autorotation flight mode and support 2019-11-29 08:06:10 +08:00
Randy Mackay
adc1d60ea5 Copter: CTUN logging fix for SAlt
sonar altitude was not being logged in modes that don't use surface tracking including Auto
SAlt scaling was also incorrect
2019-11-12 09:10:21 +08:00
Peter Barker
201adb6818 Copter: correct Heli compilation when some modes are disabled 2019-11-06 16:36:35 +11:00
Peter Barker
38d3c2daa1 Copter: stop providing current location to mount 2019-11-05 19:55:45 +11:00
Peter Barker
e6c6189fe5 Copter: cope with change in namespace of LogEvent enum
Also move Acro Trainer types into an enum class as the global defines
interfere with the Event names.

Also eliminate the Log_Write_Event wrappers.
2019-11-05 08:19:26 +08:00
Matt Lawrence
f71ef4c7ab Copter: Refactor failsafes, add fs_options bitmask parameter
- Radio failsafe, battery failsafe, GCS failsafe refactoring
- Add new FS_OPTIONS parameter
- Enhance GCS Failsafe abilities
2019-11-03 07:07:34 +08:00
Peter Barker
b6920e14c8 Copter: remove redundant SurfaceTracking enumeration namespacing
Also rename State to Surface to be more specific about what is being
set/tracked.
2019-10-26 08:08:22 +08:00
Michael du Breuil
b42b1c08c4 Copter: Support new AP_Vehicle::set_mode 2019-10-25 08:48:22 +08:00
Randy Mackay
7b0da89708 Copter: add vibration check 2019-10-18 11:15:25 +09:00
Leonard Hall
50a098c359 Copter: Standby functions 2019-10-17 14:57:18 +09:00
Leonard Hall
c11f2247eb Copter: System ID mode 2019-10-16 08:17:09 +09:00
Randy Mackay
36327d56de Copter: reject reboot request from GCS if auto esc cal on next reboot
this resolves an edge case in which the motors could spin up on the next reboot because the user didn't unplug the battery to reboot the flight controller
2019-10-15 07:41:44 +09:00
Andy Piper
8ce7f02167 ArduCopter: add functions to update dynamic notch frequency. Periodically log the frequency.
tradheli- make RPM sensor input to harmonic notch in hertz
2019-10-10 20:26:02 +09:00
Peter Barker
9e5d5c023c Copter: move many members up to base class 2019-10-08 11:26:04 +11:00
Peter Barker
95f81297d9 Copter: become an AP_Vehicle 2019-10-08 11:26:04 +11:00
murata
abb91fc33a Copter: Change external button specification to option
Copter: Change the definition name from BUTTON to BUTTON_ENABLED.
2019-10-08 08:09:19 +09:00
Randy Mackay
1c4f47f882 Copter: add upward facing surface tracking 2019-09-28 11:13:14 +09:00
Randy Mackay
d5d7fbe761 Copter: rangefinder glitch detection moved to read_rangefinder 2019-09-28 11:13:14 +09:00
Randy Mackay
808efa4c79 Copter: surface tracking format fixes 2019-09-28 11:13:14 +09:00
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.
2019-09-13 13:12:08 +09:00
Randy Mackay
709c874d8b Copter: integrate AP_OAPathPlanner 2019-08-17 09:42:43 +09:00
Peter Barker
4fa83ed40d Copter: move automatic declination setting into AP_Compass itself 2019-08-13 10:02:13 +10:00
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
2019-08-06 14:09:09 +09:00
Peter Barker
b0428f0fe8 Copter: make surface_tracking a class, various functions methods 2019-08-06 14:09:09 +09:00
Peter Barker
97bb846310 Copter: RangeFinder uses AP_SerialManager singleton 2019-07-16 09:29:48 +10:00
Peter Barker
9412075b9c Copter: avoidance no longer takes ahrs in constructor 2019-07-16 09:29:48 +10:00