Commit Graph

470 Commits

Author SHA1 Message Date
Peter Barker 09a9bd73a4 ArduCopter: move handling of last-seen-SYSID_MYGCS up to GCS base class 2021-04-07 17:54:21 +10:00
Tatsuya Yamaguchi 0cce5699b2 Copter: change from control_mode to flightmode 2021-03-23 22:48:20 +11:00
Randy Mackay 2d9c6867f4 Copter: accept MISSION_START commands when vehicle is disarmed 2021-03-23 10:12:08 +09:00
Tatsuya Yamaguchi ed8384b45a Copter: add option to disable LANDING_GEAR 2021-03-17 10:41:11 +09:00
Randy Mackay be29b23195 Copter: do-mount-control ignored if no mount
Co-authored-by: srirajshukla <srirajshukla@gmail.com>
Co-authored-by: Yash Vadi <yvadi9274@yahoo.com>
2021-03-16 10:07:16 +09:00
Tom Pittenger 38fd43ac2c Copter: change SRx_ docs value 1 50 2021-03-03 18:17:22 +11:00
Hwurzburg 7d7a7a365d Copter: correct metadata for do_change_speed cmd 2021-02-24 16:06:41 +09:00
Randy Mackay 97c1445bce Copter: ensure send_position_target_global_int alt always absolute 2021-02-15 17:39:07 +11:00
Peter Barker ea0efd3a1a Copter: correct documentation of use of DO_CHANGE_SPEED parameter 2021-02-15 15:44:17 +11:00
Mark Whitehorn f405454aba Copter: add nullptr checks for get_frame_string
fix rebase errors
2021-02-09 12:43:53 +11:00
Mark Whitehorn cb687a6fff Copter: move get_frame_string to Motors class 2021-02-09 12:43:53 +11:00
Iampete1 0a23084d43 Copter: move get_frame_mav_type to motors 2021-01-26 11:07:36 +09:00
Peter Barker 65adf5b4a9 ArduCopter: add do_disarm_checks boolean to disarm call
this creates symmetry between arming and disarming, at least as far as
the top-level arm() and disarm() calls are concerned.
2021-01-12 08:48:44 +09:00
murata 5ca7e03eeb Copter: tidy handling of DO_FLIGHT_TERMINATION 2021-01-05 16:48:15 +11:00
Andrew Tridgell abd3ae8f3b Copter: added mavlink reporting of airspeed and wind
when we have EKF3 estimation available
2020-12-11 15:21:41 +11:00
Peter Barker af53f9ce64 Copter: correct compilation when AUTO/RTL are disabled 2020-10-06 11:25:09 +11:00
Andy Piper b8f613c965 Copter: rename ADSB_ENABLED to HAL_ADSB_ENABLED and remove from config 2020-09-22 09:33:51 +10:00
Randy Mackay 2398b5dec4 Copter: guided consumes set-pos-target-local-ned Z-axis as offset from origin 2020-09-01 10:27:18 +10:00
Peter Barker 76e5ae9b41 Copter: move mavlink set-position defines into mavlink library 2020-08-11 09:52:52 +09:00
Peter Barker 66e0afedb2 Copter: correct motor test order parameter description 2020-08-10 09:18:05 +10:00
Michael du Breuil 376494027b Copter: Support higher resolution percent based motor tests 2020-08-09 13:47:48 +10:00
Randy Mackay 54b714a24e Copter: implement send_winch_status 2020-08-07 21:55:07 +09:00
Randy Mackay 925f76c048 Copter: integrate winch changes
includes the following changes
winch_update called at 50hz
removed ability to set winch rate from ch6 tuning
remove wheel encoder
call winch library to log at 10hz
fix winch param prefix
2020-08-07 21:55:07 +09:00
Andy Piper 54c3d07547 Copter: make make/gimbal configurable on a per-board basis 2020-08-04 09:18:14 +10:00
Randy Mackay 30c8d7bf40 Copter: dev option so set-attitude-target thrust field used as thrust 2020-08-01 08:32:23 +09:00
Michael du Breuil 08f8a41ecb Copter: Support DO_LAND_START as an adhoc MAVLink command 2020-07-17 09:15:05 +09:00
Michael du Breuil c971fe0ca4 Copter: Support MAV_CMD_DO_REPOSITION on COMMAND_INT 2020-07-07 10:34:19 +10:00
Peter Barker b64a34fc38 Copter: add GENERATOR_STATUS to STREAM3 2020-07-03 08:21:42 +09:00
Iampete1 13d6a887fd Copter: align GCS PID with logged 2020-05-19 09:04:16 +10:00
Randy Mackay b32c5a840b Copter: do not send ahrs3 mavlink message 2020-04-22 14:11:17 +09:00
Peter Barker bf79c49c23 ArduCopter: remove comment for already-removed in-delay-callback function
These are now attached to completely unrelated functions, which is
pretty bad.
2020-04-16 15:11:35 +09:00
Randy Mackay 255c5d4126 Copter: set-pos-target-global-int fails sooner if accel given
same change for set-position-target-local-ned processing
2020-03-02 14:26:33 +09:00
Randy Mackay b21ecda76f Copter: fix guided mode handling of terrain altitudes 2020-03-02 14:26:33 +09:00
Peter Barker ce5f23810b ArduCopter: log disarm method 2020-02-22 12:16:29 +11:00
Randy Mackay d04c86be1e Copter: minor format changes to GCS_MAVlink.cpp 2020-02-17 14:42:49 +09:00
Sachchit Vekaria f6125b26e8 Copter: Allowing Terrain Following in Guided Mode
Uses frame type of MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT message to decide the value of terrain_alt boolean.
2020-02-17 14:42:42 +09:00
Peter Barker 9466126fa8 Copter: let AP_Vehicle base class worry about scheduler delay callback 2020-01-21 11:37:28 +11:00
Peter Barker a56ab9136e Copter: let GCS base class handle proximity and rangefinder messages 2019-12-24 12:08:54 +11:00
Peter Barker 46832e9dee Copter: rename system_status as it won't be called from base class 2019-11-27 14:27:53 +11:00
Peter Barker 5d1261da73 Copter: rename parameter to avoid name conflict with lock 2019-11-12 16:33:12 +11:00
Mark Whitehorn 6dd28f7d74 ArduCopter: change in_sensor_config_error to in_config_error 2019-11-08 10:14:34 +11:00
Peter Barker 976acb3a58 Copter: let GCS superclass specify compass and param float capabilitiy 2019-11-05 11:26:23 +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
Michael du Breuil b42b1c08c4 Copter: Support new AP_Vehicle::set_mode 2019-10-25 08:48:22 +08: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
Peter Barker 1b29cf14a6 Copter: remove get_advanced_failsafe override; singleton to be used 2019-09-17 09:13:43 +10: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
Peter Barker f8f5e7f5ae Copter: correct compilation when guided mode is disabled 2019-08-22 17:47:45 +01:00
Randy Mackay 709c874d8b Copter: integrate AP_OAPathPlanner 2019-08-17 09:42:43 +09:00
Peter Barker 48a1b2f436 Copter: avoid allocate a GCS_MAVLINK per mavlink channel 2019-08-14 18:25:43 +10:00