kozinalexey
8b5f5a5fa0
Copter: fix camera relay trigger
...
camera.update() for automatic shots always called from
void Copter::update_GPS(void), after gps read
copter specific bug
2018-03-20 10:13:49 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
5f9879fae1
Copter: remove more parameters when ACRO is disabled
2018-03-20 08:13:06 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
d78c2a1015
Copter: Fix copy-paste error in toy_mode
2018-03-20 08:13:06 +09:00
night-ghost
a1797beb41
Copter: removed 1ms delay on startup
...
handled by GCS library now, not needed here
2018-03-20 10:08:20 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
8e143aa637
Copter: Do not switch into a disabled flight mode
2018-03-19 15:06:41 +00:00
Ebin
d8f56b3511
ArduCopter: changed signature for get_pilot_desired_lean_angles()
...
Removes first two redundant input parameters, makes fn non static, makes fn const
2018-03-19 17:51:39 +09:00
Peter Barker
edcfa7ffd4
Copter: move handling of get_home_position up
2018-03-19 10:32:37 +09:00
Peter Barker
45f2312bfe
Copter: move home state into AP_AHRS
2018-03-19 10:32:37 +09:00
Peter Barker
52882d11fa
Copter: AP_TempCalibration does not take reference to ins
2018-03-16 00:37:35 -07:00
Peter Barker
2749ee9060
Copter: use ins singleton
2018-03-16 00:37:35 -07:00
Randy Mackay
feecbe442f
Copter: use multiply instead of divide in param conversion
2018-03-16 13:50:57 +09:00
Randy Mackay
d7ea8f073f
Copter: run guided velocity control at main loop rate
2018-03-16 13:50:57 +09:00
Randy Mackay
4a74b1b5e5
Copter: replace NTUN with PSC logging
2018-03-16 13:50:57 +09:00
Randy Mackay
0392d2752d
Copter: tuning rc-feel uses multiply instead of divide
2018-03-16 13:50:57 +09:00
Randy Mackay
1035645f5c
Copter: poshold always resets loiter I term
2018-03-16 13:50:57 +09:00
Leonard Hall
a727305a59
Copter: integrate attitude control EKF inertial-frame-reset
2018-03-16 13:50:57 +09:00
Randy Mackay
f368ff6664
Copter: parameter conversion from RC_FEEL_RP to ATC_INPUT_TC
2018-03-16 13:50:57 +09:00
Leonard Hall
8ac653cabf
Copter: AutoTune integrate renamed use_sqrt_controller
2018-03-16 13:50:57 +09:00
Randy Mackay
853d7ab573
Copter: remove setting of pos-con jerk
2018-03-16 13:50:57 +09:00
Leonard Hall
7511781a7e
Copter: add accel target to NTUN log msg
...
Also rename NTUN column headers from D (meaning Desired) to T (meaning Target)
2018-03-16 13:50:57 +09:00
Leonard Hall
f9acc8a666
Copter: guided removes xy mode in calls to pos-con
...
Also limit angle to hold altitude
2018-03-16 13:50:57 +09:00
Randy Mackay
1a0be015f9
Copter: land, loiter, rtl provide dt to AC_WPNav::set_pilot_desired_acceleration
...
Also fix accelerations/lean-angles for land and rtl-land
2018-03-16 13:50:57 +09:00
Leonard Hall
93de23e7c4
Copter: get-pilot-desired-lean-angles accepts another angle-max
2018-03-16 13:50:57 +09:00
Leonard Hall
1540f98888
Copter: add angle inputs to Loiter
2018-03-16 13:50:57 +09:00
Leonard Hall
9544b1763b
Copter: replace smoothing gain with AC_AttitudeControl::set_input_tc
2018-03-16 13:50:57 +09:00
Ebin
185f41d5bd
Copter arm_checks(): PreArm in error msg changed to Arm
2018-03-16 09:49:54 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
7df1419579
Copter: add missing MAGNETOMETER and STATS_ENABLED build defines
2018-03-15 15:03:22 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
115ed491c0
Copter: Obey RANGEFINDER_ENABLED, AUTOTUNE_ENABLED and AC_TERRAIN build macros
2018-03-15 15:03:22 +00:00
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
2018-03-15 07:51:26 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
db90ee6841
Copter: Remove RTL_ parameters if RTL flight mode is disabled
2018-03-15 07:38:50 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
21c33b60db
Copter: Remove DRIFT mode code if DRIFT mode is disabled.
2018-03-15 07:38:14 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
ed36ec3c29
Copter: add option to disable THROW mode
2018-03-15 07:38:14 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
b27c00dc5f
Copter: add option to disable ACRO mode
2018-03-15 07:38:14 +09:00
Randy Mackay
20ac17cda8
Copter: remove adsb beacon nav-guided and visodom from min features
2018-03-14 20:41:47 +09:00
Ebin
b8a307cdd0
Copter: Changed log message IDs to enum
...
Changes log message IDs to enum, removes values in LoggingParameters enum
and removes deprecated params in LogParameters.
2018-03-14 09:33:39 +09:00
Randy Mackay
af207caa1f
Copter: move get_pilot_desired_lean_angles higher in cpp
...
this makes the definition in the .h and implementation in .cpp files appear in the same order
2018-03-14 09:33:39 +09:00
Ebin
20995b909f
Copter: Moved get_pilot_desired_lean_angles to mode.cpp
2018-03-14 09:33:39 +09:00
Andrew Tridgell
62522a4e1d
Copter: fixed docs for Follow mode number
2018-03-13 07:53:16 +09:00
Peter Barker
d88bd52a53
Copter: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
9f05556801
Copter: delete correct assignment operator
2018-03-08 21:20:05 -08:00
Peter Barker
9bffeb4117
Copter: use AHRS singleton in GCS_MAVLink
2018-03-07 12:34:39 +00:00
Peter Barker
bc4f021516
Copter: use AP::ahrs() for ADSB
2018-03-07 12:34:39 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
35a4748c06
Copter: follow mode renames and comment improvements
2018-03-06 09:50:16 +09:00
Peter Barker
af56826107
Copter: follow mode fixups
...
add follow to FLTMODEx param descriptions
remove follow's set_velocity method
10hz logging of desired velocity in follow mode
follow mode uses pos error P gain
add send-debug-via-mavlink option
don't enter follow if follow lib is disabled
follow debug slowed to 1hz
disable follow on min-features builds
2018-03-05 15:08:08 +09:00
Randy Mackay
6ee101ca98
Copter: rename chase to follow
2018-03-05 15:08:08 +09:00
Randy Mackay
053983eb70
Copter: integrate AP_Follow into chase mode
2018-03-05 15:08:08 +09:00
Peter Barker
199455dc56
Copter: add chase mode
2018-03-05 15:08:08 +09:00
Randy Mackay
0840f0e8ae
Copter: add AP_Follow to build
2018-03-05 15:08:08 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
bc86ca0e3c
Copter: simplify Log_Write_Proximity
2018-03-03 17:13:34 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
b0f22833f6
Copter: Add GRIPPER_ENABLED macro to user config file
2018-03-03 17:13:24 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
c1246c59e0
Copter: disable scheduler tasks for optional features
2018-03-03 17:10:34 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
bbd1aa1cab
Copter: Improve interoperation of AC_AVOID_ENABLED and BEACON_ENABLED
2018-03-03 17:10:26 +00:00
Pierre Kancir
50c3ed1460
Copter : allow rc_override input at start
...
found by chobitsfan
2018-03-02 16:23:11 +00:00
Andrew Tridgell
cf00bd99ea
Copter: enanle RC override by default
2018-03-02 12:52:50 +11:00
Andrew Tridgell
30572692c4
Copter: added ALLOW_ARM_NO_COMPASS
...
for skyviper-f412
2018-03-02 12:52:50 +11:00
night-ghost
adcc309f15
Copter: allow AP_Stats to be optional
2018-03-02 07:23:35 +11:00
murata
c0954b557e
Copter: move BCN param desc within define
...
non-functional change to make the formatting consistent
2018-02-28 13:17:40 +09:00
Peter Barker
398d0d1f37
Copter: do not allow toy mode on Helicopters
2018-02-27 14:22:32 +09:00
Peter Barker
b8e1f03599
Copter: add define for disabling beacon
2018-02-27 07:43:13 +09:00
Peter Barker
0e68ce2ad8
Copter: correct #error prerequisites
2018-02-27 07:43:13 +09:00
Peter Barker
5b355214fd
Copter: add option to disable CIRCLE flight mode
...
Saves about 2.4kB of flash
2018-02-27 07:43:13 +09:00
Peter Barker
e4898e1d60
Copter: add option to disable GUIDED_NOGPS flight mode
...
Saves about 6.3kB of flash
2018-02-27 07:43:13 +09:00
Peter Barker
86b162e32f
Copter: add option to disable BRAKE flight mode
2018-02-27 07:43:13 +09:00
Peter Barker
a7fe242e31
Copter: add option to disable RTL flight mode
2018-02-27 07:43:13 +09:00
Peter Barker
b8c432b1a1
Copter: add option to disable GUIDED flight mode
...
Saves about 6kB of flash
2018-02-27 07:43:13 +09:00
Peter Barker
0ddeb56a05
Copter: add option to disable DRIFT flight mode
...
Saves about 1kB of space
2018-02-27 07:43:13 +09:00
Peter Barker
e5056f8d40
Copter: add option to disable SPORT flight mode
...
Saves about 1,500 bytes
2018-02-27 07:43:13 +09:00
Peter Barker
7154f4dea4
Copter: add option to disable LOITER mode
2018-02-27 07:43:13 +09:00
Peter Barker
9b440d6b25
Copter: add option to disable SmartRTL mode
...
Saves 5.5k of Flash
2018-02-27 07:43:13 +09:00
Peter Barker
3a61b86e65
Copter: add option to disable POSHOLD mode
...
Saves about 4k of Flash
2018-02-27 07:43:13 +09:00
Peter Barker
b9ad2bc8db
Copter: add option to disable AUTO mode
...
Saves ~12k of flash
2018-02-27 07:43:13 +09:00
Peter Barker
eb9bbddcb7
Copter: add in_guided_mode mode callback
2018-02-27 07:43:13 +09:00
Peter Barker
e66034f183
Copter: allow fence to be disabled while AFS is enabled
2018-02-27 07:43:13 +09:00
Peter Barker
bb9af3b79d
Copter: autotune: correct compilation when logging disabled
2018-02-27 07:43:13 +09:00
Peter Barker
9cffa13f7b
Copter: correct mav result for compass motor calibration on heli
2018-02-24 00:27:41 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
b24e5c3991
Copter: Obey MOUNT == DISABLED
2018-02-22 20:58:51 +10:00
Peter Barker
846506230d
Copter: remove pointless initialisations
...
Also reduce storage size of gps primary
2018-02-22 17:51:35 +10:00
Peter Barker
1a68979050
Copter: correct nullptr check for circle nav allocation
2018-02-22 16:14:50 +10:00
Peter Barker
dc5ef168fd
Copter: toymode: correct compilation with fence is disabled
2018-02-22 10:26:37 +10:00
Peter Barker
25665c5dd9
Copter: correct definition of unused variable when precision landing disabled
2018-02-22 10:26:37 +10:00
Peter Barker
06da2f50ce
Copter: correct compilation when logging is disabled
2018-02-22 10:25:39 +10:00
Andrew Tridgell
8d49e1ac18
Copter: re-added reason to mode change log msg
...
this was lost in the mode restructuring
2018-02-22 09:07:59 +10:00
Dr.-Ing. Amilcar Do Carmo Lucas
def098bd8a
Copter: obey ADSB_ENABLED == DISABLED
2018-02-21 22:11:34 +09:00
Randy Mackay
f0534a35d1
Copter: format change for includes
...
non-functional change
2018-02-21 21:56:01 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
137de0fea5
Copter: conditionaly include more header files
...
this should help catch missing macros
2018-02-21 21:55:59 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
381bae1a4a
Copter: add missing defines to config.h
2018-02-21 21:55:33 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
002494c048
Copter: Obey CAMERA == DISABLED
2018-02-21 17:03:28 +10:00
murata
6f20c6a97b
Copter: Set the loop rate of G_dt as a variable.
2018-02-20 10:51:20 +11:00
Andrew Tridgell
348a757cc6
Copter: re-enable FLOWHOLD mode on skyviper
2018-02-14 18:27:00 +11:00
Andrew Tridgell
00ec3efb48
Copter: initialise G_Dt to 1.0/400
2018-02-13 17:15:05 +11:00
Peter Barker
730adc3f7c
Copter: eliminate perf_update scheduler table shim
2018-02-13 17:15:05 +11:00
Andrew Tridgell
f06fdf330e
Copter: use get_last_loop_time_s() for G_Dt
2018-02-13 17:15:05 +11:00
Andrew Tridgell
e0de4bccdf
Copter: use filtered loop time
2018-02-13 17:15:05 +11:00
Peter Barker
de56ae56e1
Copter: pass log-performance-bit at init time rather than update time
2018-02-13 17:15:05 +11:00
Peter Barker
bfc373aeff
Copter: move logging of PM messages to AP_Scheduler
2018-02-13 17:15:05 +11:00
Peter Barker
375911cd7c
Copter: move PERF: statustext sending into AP_Scheduler
2018-02-13 17:15:05 +11:00
Peter Barker
80a3d63264
Copter: use AP_Scheduler's loop() function
2018-02-13 17:15:05 +11:00
Peter Barker
7f69c5d26d
Copter: use scheduler ticks in place of mainloop_count
2018-02-13 17:15:05 +11:00
Peter Barker
bf6a2b8bb5
Copter: tell PerfInfo the configured loop rate
2018-02-13 17:15:05 +11:00
Randy Mackay
9eda7f4e31
Copter: global-pos-int uses system time
2018-02-13 08:52:48 +09:00
Peter Barker
e6ece4cf3d
Copter: correct use of parent class constructors (heli)
2018-02-13 08:22:30 +09:00
Randy Mackay
0ca653c8dd
Copter: disable winch, gripper, sprayer on v2 build
2018-02-12 13:50:55 +09:00
Andrew Tridgell
7938bd08bb
Copter: make flowhold mode conditional
...
reduces build size on px4-v2 by 4k
2018-02-12 13:34:47 +09:00
murata
296ee7315b
Copter: minor formatting fixes
2018-02-12 12:17:05 +09:00
murata
c31c2a4cf1
Copter: optionalize the winch
2018-02-12 12:16:57 +09:00
Peter Barker
40d74584ac
Copter: remove shims used in scheduler
2018-02-12 11:19:34 +09:00
Peter Barker
8f8917369c
Copter: correct use of parent class constructors
2018-02-09 13:41:12 +11:00
Peter Barker
5e55784707
Copter: remove unneeded and unwanted virtual keywords
2018-02-09 09:11:04 +09:00
Randy Mackay
4319e37f0c
Copter: non-functional FlowHold changes
...
class declaration moved to alphabetical position in mode.h
parameter descriptions include FlowHow at beginning to help distinguished from optical flow parameters
resolved compiler warnings
2018-02-09 10:56:32 +11:00
Andrew Tridgell
763aee6b48
Copter: fixed units on flowhold brate rate
2018-02-08 17:36:33 +11:00
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
2018-02-08 17:36:33 +11:00
Andrew Tridgell
9261e1cbde
Copter: enable F412 toymode button setup
...
different button mapping for new controller
2018-02-08 17:36:33 +11:00
Andrew Tridgell
daf35f7a30
Copter: pass loop rate to perf_info
2018-02-08 17:36:33 +11:00
Andrew Tridgell
5a210a697e
Copter: fixed flowhold build
2018-02-08 17:36:33 +11:00
Andrew Tridgell
af4f0c29ba
Copter: enable TMODE (ToyMode) support
...
this is for the skyviper button based transmitter control
2018-02-08 17:36:33 +11:00
Andrew Tridgell
f442b91ea5
Copter: added FLOWHOLD flight mode
...
This flight mode allows for position hold with optical flow without
needing a rangefinder for height. It can estimate its height from the
flow data and IMU
2018-02-08 17:36:33 +11:00
Andrew Tridgell
a26d19b57c
Copter: fill in flight mode in AP_Notify flags
...
needed for AP_Radio
2018-02-08 17:36:33 +11:00
Andrew Tridgell
ce0bcf1adc
Copter: disable toy_mode by default
2018-02-08 17:36:33 +11:00
Andrew Tridgell
15166eff2e
Copter: enable temperature calibration library
2018-02-08 17:36:33 +11:00
Andrew Tridgell
1f76f69d80
Copter: implement per-motor compass compensation
2018-02-08 17:36:33 +11:00
Andrew Tridgell
662afdc2fd
Copter: fixed build warning
...
double precision promotion
2018-02-07 20:33:45 +11:00
Michael du Breuil
69da4041ac
Copter: Move logging battery logging code to AP_BattMonitor
2018-02-06 00:11:32 +00:00
Tatsuya Yamaguchi
6698660fd6
Copter: fix Battery FailSafe action with auto mode
2018-02-05 15:13:25 +09:00
Peter Barker
ab7a9c9073
Copter: use zero_throttle_and_relax_ac in poshold, drift and autotune
2018-02-02 14:59:16 +09:00
murata
c13d6580ae
Copter: delete \n from the log using gcs().send_text
2018-02-02 09:38:39 +09:00
Randy Mackay
5a1c3cf5f4
Copter: firmware text to ArduCopter
2018-01-31 12:13:57 +09:00
Randy Mackay
0f6762bbd2
Copter: PSC_ACCZ param name shortened
2018-01-31 08:48:21 +09:00
Randy Mackay
a3e9f72b0b
Copter: fix default flight mode channel
2018-01-27 16:20:32 +09:00
Andrew Tridgell
89674482a7
Copter: added FLTMODE_CH parameter
...
this allows for the flight mode to be on any RC channel, or no channel
at all to disable RC flight modes
2018-01-27 12:01:35 +09:00
Peter Barker
a97301c0f2
Copter: do not allow arming in RTL
2018-01-25 09:53:51 +09:00
Pierre Kancir
10e6fe43dd
Copter: Add a switch option to enable/disable RC_Override
2018-01-24 21:37:41 +09:00
Pierre Kancir
cfc69214e6
Copter: add LAND_ALT_LOW parameter
2018-01-24 21:14:35 +09:00
Randy Mackay
60c3ae1ec2
Copter: fix spelling in drift mode variable name
...
non-functional change
2018-01-24 17:13:15 +09:00
Randy Mackay
f8c1d08316
Copter: 3.5.5-rc1 release note update
2018-01-24 12:09:43 +09:00
Randy Mackay
929dd04f2a
Copter: 3.5.5-rc1 release notes
2018-01-24 12:09:39 +09:00
Randy Mackay
eefa629039
Copter: remove setting accel_z PID controller's dt
...
This is handled from within the pos controller
this commit can be merged with Copter: move pos-control pids to pos-control library
2018-01-23 12:00:43 +09:00
Randy Mackay
8d6f8e4d9c
Copter: move pos-control pids to pos-control library
2018-01-23 12:00:43 +09:00
Randy Mackay
6546ccbb3f
Copter: velocity pi moved to position control library
2018-01-23 12:00:43 +09:00
Dylan Herman
20fe5bb98f
Copter: add SmartRTL failsafe action
...
Adds SmartRTL or RTL and SmartRTL or Land failsafe options for batt, throttle, and GCS failsafes
2018-01-22 10:54:28 +09:00
Peter Barker
996115c0d3
Copter: eliminate MAIN_LOOP_SECONDS macro
2018-01-20 15:35:58 +11:00
Michael du Breuil
0ddcb0a6fb
Copter: Support AP_BattMonitor_Params
2018-01-17 22:21:55 +00:00
Alexey Bulatov
8accfb97f6
ArduCopter: Check for nullptr for motors class pointer
...
Because of added initialisation of UAVCAN send_heartbeat function
starts before motors initialisation. So we need check is object created.
2018-01-17 07:24:17 -08:00
Dylan Herman
c772e2d3fd
Copter: sets SmartRTL home after AHRS home is set
...
Now calls AP_SmartRTL::set_home when arming. In addition, it calls it whenever
the ahrs home is set to the current location, whether by GCS or in-flight
Copter: merge
2018-01-17 11:04:46 +09:00
Randy Mackay
e85b1ac740
Copter: pass dt to avoidance calls
2018-01-16 12:13:48 +09:00
Leonard Hall
48d0ad26a6
Copter: mode_land sends dt to sqrt controller
2018-01-16 12:13:48 +09:00
Randy Mackay
b47d575f65
Copter: minor spelling fix
...
non-functional change
2018-01-12 16:51:25 +09:00
Peter Barker
6bcdab55d0
Copter: rename sys_status methods from geofence_ to sys_status_
2018-01-09 17:15:19 +00:00
Peter Barker
077b062701
Copter: change pre-arm checks to allow interlock to be enabled
...
With this change we will continue to tell the user their interlock is
enabled, but we will not fail the pre-arm checks.
This will mean that the blinking-LED indicators will show the vehicle as
armable (flashing green / flashing blue), even if the interlock would
prevent arming.
This has the advantage that you don't need your vehicle in the
"dangerous" state to work out whether arming will work when you attempt
to arm it.
Note that we repeat the interlock switch check in the arming checks, and
it WILL fail if the interlock switch is enabled.
2018-01-09 08:13:06 +09:00
Peter Barker
114628afe4
Copter: use zero_throttle_and_relax_ac in stab, guided, acro and auto
2018-01-08 12:02:49 +00:00
Peter Barker
8d658e1dbc
Copter: correct misleading comment in mode_throw
2018-01-08 12:02:49 +00:00