Commit Graph

61 Commits

Author SHA1 Message Date
bnsgeyer a845623dfb Copter: Tradheli - make new integrator scheme selectable 2020-12-21 23:33:48 -05:00
bnsgeyer 42b4fd6e0a Copter: change heli integrator management and add hover coll learning 2020-12-21 23:33:48 -05:00
Gone4Dirt 9269ee50ed Copter: Allow manual autorotations without enabling arot flight mode 2020-05-20 21:56:09 -04:00
Andrew Tridgell 375c08f39c Copter: convert to new get_rpm() API 2020-03-12 08:36:40 +11:00
Peter Barker 0986ed0a81 Copter: set_range on motor interlock channel 2020-01-11 21:55:24 +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
Gone4Dirt 180d4e713c Copter: Added autorotation flight mode and support 2019-11-29 08:06:10 +08:00
Peter Barker dfc8349866 Copter: use enum-class for RangeFinder Status 2019-11-09 08:01:53 +11:00
bnsgeyer b5d21a71ef Copter:Tradheli treat Sport mode as non-man throttle for landing swash 2019-11-06 16:36:35 +11:00
Peter Barker 201adb6818 Copter: correct Heli compilation when some modes are disabled 2019-11-06 16:36:35 +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
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
Andrew Tridgell 01a0d3897e Copter: fixed HAL_MINIMIZE_FEATURES build 2019-06-06 12:19:13 +10:00
ChristopherOlson 9d03b44cf7 Copter:Heli - governor set_rpm call independent of frame type 2019-06-03 07:53:01 +09:00
Peter Barker 46a6f45e4a Copter: adjust for desired spool state and spool state renames 2019-04-14 12:18:03 +09:00
bnsgeyer d949c80d54 Copter: tradheli replaces rotor_runup_complete with spool state 2019-04-08 09:42:21 +09:00
Patrick José Pereira 86633e45ff Copter: Use new RC_Channel AUX_FUNC
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-04-03 09:53:58 -07:00
Peter Barker f0ea4af514 Copter: rename get_velocity_xy to get_speed_xy 2019-02-07 09:03:17 +09:00
bnsgeyer 07d9e8c224 Copter: Tradheli-removed hard coding of motor interlock to channel 8 2019-01-28 09:44:56 +09:00
bnsgeyer c6e9a72ad9 Copter: Tradheli-fixes hover roll trim ramp time 2019-01-26 11:45:04 +09:00
Randy Mackay a8bcd50fdd Copter: minor format fix 2018-12-24 11:50:04 +09:00
Randy Mackay 2d23e1f7c7 Copter: rename flightmode_ objects to mode_ 2017-12-12 10:39:26 +09:00
Peter Barker 682f3c0e7e Copter: FlightMode - convert RTL flight mode 2017-12-06 08:24:24 +09:00
Peter Barker e2b70c3a0a Copter: FlightMode - convert AUTO flight mode 2017-12-06 08:24:24 +09:00
ChristopherOlson 51c8c1adb2 Copter: TradHeli update comment
be consistent with dynamic flight speed definition
2017-10-26 17:15:40 +11:00
squilter 4b57a4a231 Copter: rename SafeRTL to SmartRTL 2017-09-09 14:05:41 +09:00
Randy Mackay 8df042f00c Copter: complete addition of SafeRTL flight mode 2017-09-09 14:05:41 +09:00
Randy Mackay 51c00f8144 Copter: use only downward facing rangefinder 2017-02-27 15:18:16 +09:00
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
2017-01-12 17:39:37 +11:00
Andrew Tridgell 5a87ae3f01 Copter: use new SRV_Channels API 2017-01-12 17:39:37 +11:00
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.
2016-10-24 09:42:01 -02:00
Jonathan Challinger 80f3541933 Copter: add configurable arming delay 2016-08-04 15:19:22 +09:00
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
2016-07-07 14:21:47 +09:00
Andrew Tridgell 86d8450666 Copter: use loop rate for copter
this allows for SCHED_LOOP_RATE below 400 in SITL for copter
2016-06-17 15:01:18 +10:00
Andrew Tridgell 55ad1548e4 Copter: fixed heli rotor speed control from AP_Motors refactor 2016-06-04 16:22:19 +10:00
Randy Mackay 5ac13c0355 Copter: move rangefinder variables into structure
moved in rangefinder_alt, rangefinder_alt_health and rangefinder_enabled
2016-05-21 10:36:53 +09:00
Randy Mackay 7689315ba2 Copter: rename sonar to rangefinder 2016-05-21 10:36:53 +09:00
skyscraper 49d3410896 ArduCopter: fixup RC_Channel data member accesses to function calls 2016-05-10 16:21:16 +10:00
Randy Mackay ef5dbae707 Copter: remove setting of heli_servo_rsc pwm range
This object is not used
2016-04-01 11:59:30 +09:00
Randy Mackay d2a42a7a0e Copter: remove heli_radio_passthrough
Replaced with set_radio_passthrough which can be used for all frames
2016-04-01 11:59:30 +09:00
Randy Mackay 8180fad4b4 Copter: tradheli sends radio passthrough in 0 to 1 range 2016-04-01 11:59:30 +09:00
Randy Mackay 3eaf7a4582 Copter: set tradheli rotor speed using 0 to 1 range 2016-04-01 11:59:30 +09:00
Leonard Hall a0409e4f9e TradHeli: dynamic flight check uses throttle in 0 to 1 range 2016-04-01 11:59:30 +09:00
Randy Mackay 1b29a1af46 Copter: consolidate setting of using-iterlock state 2015-11-17 09:02:31 +09:00
Robert Lefebvre 02b8dd5ffd Copter: Heli to set hover roll trim scalar 2015-11-12 19:37:36 +09:00
Robert Lefebvre 5cc4f41d85 Copter: Helicopter: to use new Stab_Col and Acro_Col functions. 2015-11-12 19:37:23 +09:00
Jonathan Challinger 5486be34b1 Copter: use configured function to determine if heli_servo_rsc has been configured 2015-10-26 11:15:54 +11:00
Andrew Tridgell 94eb23ef56 Copter: consider flight to be dynamic at greater than 2m above ground
use rangefinder to switch to dynamic flight if possible
2015-09-25 12:30:34 +10:00
Andrew Tridgell 64a8e66dd7 Copter: automatically set H_RSC_MIN/MAX from RC8_MIN/MAX on upgrade
this prevents a problem where the disarm throttle will change after
upgrading to 3.4
2015-09-02 10:25:48 +10:00
Randy Mackay e92296a0b7 TradHeli: integrate RotorControlMode enum 2015-08-31 11:44:00 +09:00