Ryan Friedman
85343baa01
AP_Motors: Add missing shebang
...
* This script was marked as executable but did not have a shebang
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-09-08 17:09:26 +10:00
Henry Wurzburg
8d86503ed5
AP_Motors: correct metadata for H_DDFP_SPIN_MIN param
2023-08-07 07:36:47 -04:00
Iampete1
3e246c9d25
AP_Motors: Heli: remove loop rate "RSC control mode change failed" meassage
2023-08-01 09:12:51 +09:00
Iampete1
c5f3d5a98b
AP_Motors: Heli: move heli parameter check to arming check
2023-08-01 09:12:51 +09:00
Willian Galvani
82bae765ff
AP_Motors6DOF: scale pwm output linearly to MOT_PWM_MIN/MAX
2023-07-27 10:46:18 -03:00
Iampete1
49226b6dcf
AP_motors: Example: Test: allow to run on heliquad
2023-07-18 08:05:26 +09:00
Iampete1
c3200b00dd
AP_Motors: Example: Test: make mostly flake 8 clean
2023-07-18 08:05:26 +09:00
Iampete1
b175e7a2f9
AP_Motors: example: heli comparison: update functionality and support setting swash type
2023-07-18 08:05:26 +09:00
Iampete1
c5c26e89da
AP_Motors: example: allow setting shashplate type at runtime
2023-07-18 08:05:26 +09:00
Iampete1
b327f00b25
AP_Motors: heli: move swash servo defualt and setup into swash lib
2023-07-18 08:05:26 +09:00
Iampete1
d32d1dfec8
AP_Motors: Heli: get output mask from swashplate lib
2023-07-18 08:05:26 +09:00
Iampete1
b61b761141
AP_Motors: Heli: move swashplate output state and code into swash lib
2023-07-18 08:05:26 +09:00
Iampete1
6717da708c
AP_MotorsHeli: swash: combine configure and calculate_roll_pitch_collective_factors functions
2023-07-18 08:05:26 +09:00
Iampete1
83f216a386
AP_Motors: Heli: Swash: re-work roll pitch and collecive factor caculation
2023-07-18 08:05:26 +09:00
muramura
d5dd4151eb
AP_Motors: If frame specification is FALSE, frame name is unsupported
2023-07-11 10:22:26 +09:00
Gone4Dirt
d5e72a5440
AP_Motors: Fix up MotorTestSweep.sh now that frame_class is an enforced argument
2023-07-11 10:10:14 +10:00
Gone4Dirt
2563edc3c3
AP_Motors: Allow frame class to be a run-time arg to AP_Motors_test and add all heli frame classes to test
...
AP_Motors: Example: init each frame type correctly and warn for init fail
2023-07-11 10:10:14 +10:00
Iampete1
f55267017b
AP_Motors: Heli: Remove unused init_output return and don't assume single for initialised OK
2023-07-04 11:31:21 +10:00
Iampete1
d57ce2ad6f
AP_Motors: Add motor test checks method to refuse test
2023-06-27 10:24:15 +10:00
Iampete1
c5733e7634
AP_Motors: Heli: remove _output_test_seq as used in motor test
2023-06-27 10:24:15 +10:00
Iampete1
97541f82d0
AP_Motors: Heli RSC: remove incorrect set range call
2023-06-27 09:04:18 +10:00
bnsgeyer
251eb10cfa
AP_Motors: make defaults dependent on vehicle type
2023-06-14 22:26:40 -04:00
bnsgeyer
1e521d1a5d
AP_Motors: Move DDFP thrust linearization params into sub group
2023-06-14 22:26:40 -04:00
bnsgeyer
270c6a2028
AP_Motors: Tradheli-fix servo4 param calls and ensure no divide by zero
2023-06-14 22:26:40 -04:00
bnsgeyer
cc89c1ac1a
AP_MotorsHeli: add thrust linearization for DDFP tails
2023-06-14 22:26:40 -04:00
Peter Barker
6c9ea896c7
AP_Motors: allow AP_SCRIPTING_ENABLED to come from hwdef files
2023-06-09 16:10:52 +10:00
Iampete1
4fcd767f9e
AP_Motors: example: add ability to dump all matrix motor layouts in JSON format
2023-05-23 10:18:17 +10:00
Iampete1
bea98fa909
AP_Motors: test: fix for heli
2023-05-09 10:38:33 +10:00
Gone4Dirt
78eb4a840d
AP_MotorsHeli: Whitespace
2023-05-08 19:05:17 -04:00
Gone4Dirt
191ce55e1d
AP_MotorsHeli: Remove pure virtuals and unnecessary overrides
2023-05-08 19:05:17 -04:00
Gone4Dirt
4b2c1368bd
AP_MotorsHeli: move rotor_speed_above_critical to RSC so that it is actually used
2023-05-08 19:05:17 -04:00
Iampete1
81f3d3edda
AP_Motors: Heli: get_output_mask return only motors
2023-05-05 22:20:16 -04:00
Andy Piper
6248a657c8
AP_Motors: allow use of raw voltage for battery compensation driven by MOT_OPTIONS
2023-04-26 17:04:45 +10:00
Iampete1
3a36337775
AP_Motors: Thrust Linearization: disable density comp in example as baro is not declared
2023-04-18 09:32:22 +10:00
Iampete1
ab4777de14
AP_Motors: move thrust linerization to its own class
2023-04-18 09:32:22 +10:00
Iampete1
9077f60e87
AP_Motors: Tricopter: rework and move yaw servo to arming check, allow no yaw on plane
2023-04-11 09:13:26 +10:00
Iampete1
9e71c9953d
AP_Motors: example: add thrust boost
2023-04-04 09:25:15 +10:00
Iampete1
1a754904e9
AP_Motors: Matrix: mixer simplification
2023-04-04 09:25:15 +10:00
Iampete1
e9da278164
AP_Motors: example: add script to run motor example at a range of head rooms and throttle average max values
2023-04-04 09:25:15 +10:00
Iampete1
7c92340b42
AP_Motors: add getters for example
2023-04-04 09:25:15 +10:00
Iampete1
f7a8668c30
AP_Motors: Example: rework and update take optional arguments
2023-04-04 09:25:15 +10:00
Peter Hall
bbb9e66196
AP_Motors: add method for scripting to set external limit flags
2023-03-07 10:12:30 +11:00
Iampete1
e2e239dd08
AP_Motors: add logging of output throttle
2023-02-28 11:06:32 +11:00
Bill Geyer
78720e9816
AP_MotorsHeli: patch for manual autorotation
2023-02-18 10:19:50 -05:00
Bill Geyer
eba850d9ef
AP_MotorsHeli: better governor power recovery from autorotation
2023-02-05 17:54:33 -05:00
Bill Geyer
40d18f46cf
AP_MotorsHeli: Change AROT_PCT to AROT_IDLE
2023-02-05 17:54:33 -05:00
Bill Geyer
08165e204e
AP_MotorsHeli: add comments to code
2023-02-05 17:54:33 -05:00
Bill Geyer
a209bd15eb
AP_Motors: style formatting MotorsHeli_RSC.cpp
2023-02-05 17:54:33 -05:00
Bill Geyer
a27ccb8294
AP_MotorsHeli: add support for manual autorotation
...
AP_MotorsHeli: fix runup from idle bug
AP_MotorsHeli: don't let rotor_runup_output go below critical speed in autorotation
AP_MotorsHeli: set autorototate flag false after landing
2023-02-05 17:54:33 -05:00
Ferruccio1984
e935913f95
AP_Motors: Support for Autorotation implementation
...
-enables faster re-spool(user settable timer) after power engagement
-flare&touchdown controllers;
-rangefinder for distance from ground evaluation;
-higher refresh rate for rangefinder;
-attitude targets implementation for "guided" autorotation;
-retrieve zero lift collective position
2023-02-05 17:54:33 -05:00
UbhayAnand1
bb05f40560
AP_Motor: removed redundant statements
2023-01-30 08:18:08 +09:00
UbhayAnand1
5da7ad025b
AP_Motors: Corrected the parameters.
2023-01-30 08:18:08 +09:00
Peter Barker
ad57141a85
AP_Motors: tidy includes of SRV_Channel.h
2023-01-25 22:30:55 +11:00
Andy Piper
c620ba58df
AP_Motors: use _dt instead of loop rate for throttle slew calculation
2023-01-11 18:59:52 +11:00
Andy Piper
ad94c5cab1
AP_Motors: calculate throttle slew rate
...
use derivative filter and apply filtering to slew detector
2023-01-11 18:59:52 +11:00
Bill Geyer
93b0519ad2
AP_MotorsHeli: improve collective to yaw compensation
2022-12-22 07:07:34 -05:00
Leonard Hall
67205f8114
AP_Motors: Support changing update period
2022-12-13 17:10:06 +11:00
Iampete1
d5082e25e8
AP_Motors: output_motor_mask mask to uint16_t
2022-11-29 10:53:59 +11:00
Peter Barker
1b4f200cfd
AP_Motors: remove GCS.h from library header files
2022-11-16 18:29:07 +11:00
bnsgeyer
70c2775949
AP_MotorsHeli: update H_DUAL_MODE description to include coaxial
2022-11-16 14:17:54 +09:00
Peter Barker
3eecf7b71d
AP_Motors: change namespace of MultiCopter and FixedWing params
...
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Iampete1
7cafcf7b90
AP_Motors: Multicopter: add motor pwm param range check
2022-09-19 20:57:51 -04:00
Peter Barker
d21aa2a1ed
AP_Motors: add and use AP_RPM_ENABLED
...
... and backend-specific equivalents
2022-09-20 09:28:27 +10:00
Andrew Tridgell
3d63a968cf
AP_Motors: added a SPIN_MIN check
...
and check SPIN_ARM <= SPIN_MIN
2022-09-14 21:45:20 +01:00
Iampete1
f3dc805978
AP_Motors: Block Spoolup: stop advance from ground idle
2022-09-07 17:03:03 +01:00
Randy Mackay
ff91bbd762
AP_Motors: add spoolup block
2022-09-07 17:03:03 +01:00
Iampete1
e72e5a2751
AP_Motors: add pre-arm check
2022-09-07 17:54:16 +10:00
Henry Wurzburg
8b02f11c23
AP_Motors: refactor to allow frame type symbols to be created for ELF
2022-08-09 10:06:18 +10:00
Iampete1
c1a9f75034
AP_Motors: params always use set method
2022-08-03 13:43:48 +01:00
Andy Piper
f666c71676
AP_Motors: add BF/X cinelifter octaquad configuration
2022-08-03 17:06:38 +10:00
Iampete1
ad8b9f58df
AP_Motors: use set and defualt
2022-07-20 17:59:59 +10:00
Peter Barker
c00d712adc
AP_Motors: remove transitive include dependencies
2022-07-20 17:32:24 +10:00
chobitsfan
a723abf986
AP_Motors: reuse spool_step for code refactoring
2022-07-11 08:39:34 +09:00
murata
0b357faf7e
AP_Motors: Resolve Issue 20894
2022-06-07 10:02:11 +10:00
Andrew Tridgell
b2e43d1dee
AP_Motors: fixed override of MOT_PWM_MIN/MAX in defaults.parm
...
need to check configured() not configured_in_storage()
2022-06-06 13:11:50 +10:00
Andy Piper
3d9639181e
AP_Motors: make sure ESC type is initialized early
2022-05-25 17:06:08 +10:00
Andrew Tridgell
f00a227b33
AP_Motors: more changes for 32 bit servo mask
2022-05-22 12:07:37 +10:00
Iampete1
43832649ec
AP_Motors: convert to 32 bit motor mask
2022-05-22 12:07:37 +10:00
Peter Barker
434f49e6b6
AP_Motors: correct initialised_ok state for HeliDual+Quad
...
initialised_ok was being set to false when frame/class was set as the
method was not overridden and thus Heli's set_frame_and_class was
setting initialised_ok to false. When the init_output method was called
it would be unconditionally reset to true.
2022-05-18 12:25:26 +09:00
Tatsuya Yamaguchi
dbae31fb15
AP_Motors: Add Tricopter only to the description of YAW_SV_ANGLE
2022-05-10 09:35:11 +10:00
Peter Barker
8930b5f6f5
AP_Motors: tidy includes
2022-05-03 09:14:58 +10:00
murata
6d4a923cce
AP_Motors: Change from division to multiplication
2022-03-16 18:41:52 +11:00
Iampete1
bb1dc2e9a1
AP_Motors: update no motor found warning message
2022-03-09 08:46:55 +09:00
Peter Barker
5d35d8a02c
AP_Motors: include cleanups
2022-03-01 11:21:33 +11:00
Bill Geyer
f7b420f131
AP_Motors: move turbine start to update_turbine_start and style cleanup
2022-02-23 14:22:47 +09:00
Ferruccio1984
3a67b17142
AP_Motors: tradheli support for turbine start
2022-02-23 14:22:47 +09:00
Iampete1
8af5f5b2d7
AP_MotorsMulticopter: check interlock state in output_motor_mask
2022-02-10 07:43:40 +09:00
Iampete1
5181003228
AP_Motors: always check armed and interlocked in motor test
2022-02-10 07:43:40 +09:00
Peter Barker
06c61070dc
AP_Motors: add and use AP_MOTORS_FRAME_DEFAULT_ENABLED
2022-02-08 11:06:24 +11:00
Bill Geyer
87fd0480bb
AP_Motors: Tradheli-update coll_land_min default
2022-02-07 06:23:37 -05:00
Peter Barker
bd4aed80dc
AP_Motors: tweak logging structure construction
...
const and avoid assignment rather just do initialisation
allows for static checking of narrowing conversions
2022-01-21 21:34:57 +11:00
Iampete1
86578d5cec
AP_Motors: add local loging of MOTB
2022-01-18 10:18:10 +11:00
Iampete1
8b54665a48
AP_Motors: example: remove SRV_Channels calls
2022-01-13 23:33:34 +11:00
Peter Hall
1fde5b3ef1
AP_Motors: tailsitter: add external min throttle limit
2022-01-11 10:37:38 +11:00
Iampete1
70897b5e38
AP_Motors: allow custom frame string from scripting
2022-01-05 19:51:19 +11:00
Andrew Tridgell
c44b8cf73a
AP_Motors: fixed PWM_TYPE range for quadplanes
...
when motors don't start at SERVO1 we were applying the range to the
wrong output.
This allows users to control the PWM of individual motors precisely
for quadplanes where calibration of motors is difficult
2021-12-29 18:40:41 +11:00
Bill Geyer
afaff18bd0
AP_Motors: modifications based on suggested changes
2021-12-14 22:50:05 -05:00
Bill Geyer
a8d74c6414
AP_Motors: Tradheli- add governor engaged message over GCS
2021-12-14 22:50:05 -05:00
Bill Geyer
2ac157b188
AP_Motors: Tradheli- fix governor spool up bug
2021-12-14 22:50:05 -05:00
MidwestAire
22c2329063
AP_Motors:Heli_RSC - throttle curve _control_output does not need a constrain_float
...
- change lower limit of governor enaged output to 150% of idle speed
- add governor_reset() function
- remove governor defaults from header
- rearrange governor metadata in alphabetical order, assign new eeprom slot for rpm
2021-12-14 22:50:05 -05:00