Commit Graph

375 Commits

Author SHA1 Message Date
Robert Lefebvre
2c612e5f8e AP_MotorsHeli: Add parameter checks to Single class 2015-12-07 15:01:44 +09:00
Robert Lefebvre
792e989cd6 AP_MotorsHeli_Single: Move Servo_Test static variables to be class members 2015-11-03 17:01:18 +09:00
Robert Lefebvre
99212f71bf AP_MotorsHeli: Create Servo Test functionality 2015-11-03 17:01:14 +09:00
Robert Lefebvre
ae1fbdb68a AP_MotorsHeli: Create SV_MAN=5=Oscillate servo setup mode. 2015-11-03 17:01:13 +09:00
Robert Lefebvre
0228a99d4e AP_MotorsHeli: Yaw servo to move when using SV_MAN param for setup. 2015-11-03 17:01:12 +09:00
Robert Lefebvre
146c0319a7 AP_MotorsHeli: Change SV_MAN=2=Center to output _col_mid_pwm instead of 0 collective 2015-11-03 17:01:11 +09:00
Fredrik Hedberg
014e90ec85 AP_MotorsHeli: Add min and max collective to manual servo modes 2015-11-03 17:01:09 +09:00
Robert Lefebvre
739d87a15b AP_MotorsHeli: Change servo manual #defines into enum 2015-11-03 17:01:08 +09:00
Robert Lefebvre
d11e5d4ae4 AP_MotorsHeli_Single: Add motor enable aux output functionality 2015-11-03 17:01:07 +09:00
Robert Lefebvre
bf8001cb88 AP_MotorsHeli: Change rotor control state into Enum. 2015-11-03 17:01:05 +09:00
Fredrik Hedberg
3aeed8173b AP_Motors: Add manual servo override to center swash-plate for set-up in AP_MotorsHeli. 2015-11-03 17:01:03 +09:00
Jolyon Saunders
0df3af4e42 AP_Motors: Circular swash-plate limits for AP_MotorsHeli 2015-11-03 17:01:02 +09:00
Robert Lefebvre
a0932d1d0b AP_MotorsHeli: Fix RSC Mode 3 2015-10-10 15:12:24 +09:00
Robert Lefebvre
7fe90e7a34 AP_MotorsHeli_RSC: Fix tail_type control 2015-10-10 15:12:22 +09:00
Robert Lefebvre
b6e869400c AP_MotorsHeli_Single: DDVPT to use it's own ramp and runup times 2015-10-10 15:12:17 +09:00
Robert Lefebvre
ec8afbec53 AP_MotorsHeli: Move Output functions into parent class 2015-10-10 15:12:14 +09:00
Robert Lefebvre
e23e57cc16 AP_MotorsHeli: Rework how servo setup is done. 2015-10-10 15:12:12 +09:00
Robert Lefebvre
bac559d5af AP_MotorsHeli: Simplify servo init/reset 2015-10-10 15:12:10 +09:00
Robert Lefebvre
c00fd86b45 AP_MotorsHeli: Move set_delta_phase_angle into _Single class 2015-10-10 15:12:07 +09:00
Robert Lefebvre
88be4425ac AP_MotorsHeli: Create RSC Throttle Curve mode for controlling gas engines. 2015-10-10 15:12:03 +09:00
Robert Lefebvre
b1c7ec9aac AP_MotorsHeli: run RSC Control function in Output Min function
Move Output_Min() function into Heli_Single class as it will eventually be overloaded by other helicopter class types.
2015-10-10 15:12:00 +09:00
Robert Lefebvre
19536c1c11 AP_MotorsHeli: RSC controller to use speed ramp as simple float scalar 2015-10-10 15:11:51 +09:00
Robert Lefebvre
904fa7f8b9 AP_MotorsHeli: Set range of new RSC Servo object. 2015-10-10 15:11:49 +09:00
Robert Lefebvre
e3df0ec7fb AP_MotorsHeli: RSC Mode 0 no longer a valid mode 2015-10-10 15:11:44 +09:00
Robert Lefebvre
f4ddedbffc AP_MotorsHeli: Add more parameter checks 2015-10-10 15:11:42 +09:00
Robert Lefebvre
fa24107a2a AP_MotorsHeli_RSC: Split out rotor speed estimate into it's own function 2015-10-10 15:11:40 +09:00
Robert Lefebvre
9e8f5a42f4 AP_MotorsHeli: Colyaw function to check if rotor speed control is above idle 2015-10-10 15:11:37 +09:00
Robert Lefebvre
d788f0307d AP_MotorsHeli: rework RSC output() function to implement idle speed function
Also, split out speed_ramp function
2015-10-10 15:11:35 +09:00
Robert Lefebvre
b879b312e9 AP_MotorsHeli_Single: Fix recalc_scalars function 2015-10-10 15:11:32 +09:00
Robert Lefebvre
24244ba576 AP_MotorsHeli: Create RSC_IDLE param 2015-10-10 15:11:30 +09:00
Robert Lefebvre
718397c772 AP_MotorsHeli: Change RSC output() function into a state machine. 2015-10-10 15:11:27 +09:00
Robert Lefebvre
bf0fd3b3f2 AP_MotorsHeli: Fully detail tradheli output functions and move manual servo handling 2015-10-10 15:11:25 +09:00
Robert Lefebvre
ec400e06d8 AP_MotorsHeli: Rename tradheli servo objects for clarity 2015-10-10 15:11:22 +09:00
Robert Lefebvre
6a7996d367 AP_MotorsHeli: Update includes so that it builds 2015-10-10 15:11:19 +09:00
Fredrik Hedberg
d1fbf739c0 AP_Motors: Fix param indices in AP_MotorsHeli. 2015-10-10 15:11:16 +09:00
Fredrik Hedberg
260d018db9 AP_Motors: Rename output_yaw to move_yaw in AP_MotorsHeli_Single. 2015-10-10 15:11:13 +09:00
Fredrik Hedberg
7ac02922e9 AP_Motors: Fix formatting in AP_MotorsHeli_RSC. 2015-10-10 15:11:10 +09:00
Fredrik Hedberg
fae1dcc42b AP_Motors: Fix param range comment in AP_MotorsHeli. 2015-10-10 15:11:08 +09:00
Fredrik Hedberg
cde94078b7 AP_Motors: Move traditional helicopter controls into AP_MotorsHeli_Single.
Original commit by fhedberg, had to fix merge conflicts and now it appears I did the commit?
2015-10-10 15:11:03 +09:00
Fredrik Hedberg
af1eee44ee AP_Motors: Break out yaw output in AP_MotorsHeli. 2015-10-10 15:11:00 +09:00
Fredrik Hedberg
ded265dbe1 AP_Motors: Break out servo init and reset in AP_MotorsHeli. 2015-10-10 15:10:57 +09:00
Fredrik Hedberg
54452e2a74 AP_Motors: Move rotor speed control into AP_MotorsHeli_RSC. 2015-10-10 15:10:53 +09:00
Fredrik Hedberg
e360b21b2a AP_Motors: Use C++11 initializers in AP_MotorsHeli. 2015-10-10 15:10:50 +09:00
Leonard Hall
9dfe30f514 Copter: increase default thrust expo to 0.65 2015-08-28 12:04:21 +09:00
Gustavo Jose de Sousa
2aba5319ed AP_Motors: standardize inclusion of libaries headers
This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
2015-08-19 20:42:54 +09:00
Randy Mackay
53ed6c8f05 Motors_Multicopter: add MOT_THR_MIX_MAX parameter
Allows controlling the prioritisation of throttle vs attitude control
during active flight
2015-08-19 20:04:15 +09:00
Leonard Hall
5b133934db AP_Motors: calc_roll_pwm based on throttle pwm range 2015-08-19 20:03:55 +09:00
Randy Mackay
5032cf9fbc Copter: init multicopter flags
Resolves coverity warning

Also fixed indentation
2015-07-25 14:00:29 +09:00
Randy Mackay
e31f2d26c4 MotorsMulticopter: move get_hover_throttle_as_pwm to protected
No functional change
2015-07-21 16:27:04 +09:00
Randy Mackay
c7c6228b5d MotorsMulticopter: remove virtual from set_yaw_headroom 2015-07-21 16:27:01 +09:00