Randy Mackay
2e8acf1f74
AP_MotorsHeli: calculate_scalars made protected
...
No functional change
2016-04-01 11:59:30 +09:00
Randy Mackay
165d739b45
AC_AttControl_Heli: roll, pitch, yaw passthrough to motors in -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
344d86a095
AC_AttControl_Heli: fix parameter description
2016-04-01 11:59:30 +09:00
Randy Mackay
685be4083c
AC_AttControl_Heli: remove unnecessary cast to AC_HELI_PID
2016-04-01 11:59:30 +09:00
Randy Mackay
6c91e50f8c
AC_AttControl_Heli: remove scaling for centi-degrees and legacy motor input
2016-04-01 11:59:30 +09:00
Randy Mackay
32d238187f
AC_AttControl_Heli: get_althold_lean_angle_max in 0 to 1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
db04dddba5
AC_AttControl_Heli: adjust rate gain param descriptions
2016-04-01 11:59:30 +09:00
Randy Mackay
35c6ea994d
AC_AttControl_Multi: fix parameter descriptions
2016-04-01 11:59:30 +09:00
Randy Mackay
ace58d114f
AC_AttControl_Multi: reduce rate gain defaults
2016-04-01 11:59:30 +09:00
Leonard Hall
b30606bb22
AC_AttControl: remove scaling for centi-degrees and legacy motor input
2016-04-01 11:59:30 +09:00
Randy Mackay
7f2c1f830f
AC_AttControl_Heli: add rate PIDs
2016-04-01 11:59:30 +09:00
Randy Mackay
5edc16dfb4
AC_AttControl_Multi: add rate PIDs
2016-04-01 11:59:30 +09:00
Randy Mackay
75042e5e27
AC_AttControl: remove rate PIDs
2016-04-01 11:59:30 +09:00
Randy Mackay
17c9db08f3
AC_AttControl: add angle and rate PIDs
2016-04-01 11:59:30 +09:00
Randy Mackay
de537390c2
AC_HELI_PID: adjust parameter descriptions
...
ILMI range is now 0 to 1
2016-04-01 11:59:30 +09:00
Randy Mackay
3465f05bec
AC_HELI_PID: shorten FILT_HZ to FILT, I_L_MIN to ILMI
...
Also minor formatting fix
2016-04-01 11:59:30 +09:00
Randy Mackay
425caeabf7
AC_PI_2D: fix parameter description
2016-04-01 11:59:30 +09:00
Randy Mackay
227e4f86d7
AC_PID: fix parameter description
2016-04-01 11:59:30 +09:00
Randy Mackay
920425567c
AC_PID: shorten FILT_HZ to FILT
2016-04-01 11:59:30 +09:00
Randy Mackay
bc1b8f415a
AP_Motors: example sketch output limit flags
2016-04-01 11:59:30 +09:00
Randy Mackay
c9055ccdb1
AP_Motors: example sketch tests Single and Coax
2016-04-01 11:59:30 +09:00
Randy Mackay
41c55ffbe7
AP_MotorsTri: use YAW_SV_REV to reverse yaw output
2016-04-01 11:59:30 +09:00
Leonard Hall
13d727c2c6
AP_MotorsTri: add YAW_SV_ANGLE parameter to capture yaw servo lean angle max
2016-04-01 11:59:30 +09:00
Randy Mackay
c939cc1551
AP_MotorsTri: clarify YAW_SV parameter descriptions and comments
2016-04-01 11:59:30 +09:00
Leonard Hall
267513d864
AP_MotorsTri: fixes to output_armed_stabilizing
...
Also minor comment fixes
2016-04-01 11:59:30 +09:00
Leonard Hall
250a444e57
AP_MotorsCoax: fixes to stab patch
...
Fix throttle_lower flag
Also some formatting changes
2016-04-01 11:59:30 +09:00
Randy Mackay
20565580ed
AP_MotorsCoax: remove disabling of output ch7
2016-04-01 11:59:30 +09:00
Randy Mackay
63fefae7cf
AP_MotorsCoax: use calc_pwm_output_1ot1 instead of local calc_pivot_radio_output
2016-04-01 11:59:30 +09:00
Leonard Hall
840e60c930
AP_MotorsSingle: fixes to stab patch
...
Fixes throttle_lower flag
Also some formatting changes
2016-04-01 11:59:30 +09:00
Randy Mackay
af9b18329c
AP_MotorsSingle: use calc_pwm_output_1to1 instead of local calc_pivot_radio_output
2016-04-01 11:59:30 +09:00
Randy Mackay
c4b88aafef
AP_MotorsHeli: swash and tail servo objects moved into class
2016-04-01 11:59:30 +09:00
Randy Mackay
4f1e62d551
AP_MotorsHeli: remove reset_radio_passthrough
2016-04-01 11:59:30 +09:00
Randy Mackay
b5593431bf
AP_MotorsHeli_Single: replace collective_mid_pwm with collective_mid_pct
2016-04-01 11:59:30 +09:00
Randy Mackay
9790245bf1
AP_MotorsHeli: replace collective_mid_pwm with collective_mid_pct
2016-04-01 11:59:30 +09:00
Randy Mackay
a39bbc5421
AP_MotorsHeli: servo_test in range -1 to 1
2016-04-01 11:59:30 +09:00
Randy Mackay
a42706bdcc
AP_Motors: remove unused example sketch to test timing
...
This test was only important on the slower AVR boards
2016-04-01 11:59:30 +09:00
Randy Mackay
a3450b712c
AP_Motors: fix example sketch
2016-04-01 11:59:30 +09:00
Leonard Hall
753b72b28c
AP_MotorsY6: call normalise_rpy_factors in motor setup
2016-04-01 11:59:30 +09:00
Leonard Hall
13ab3ecfea
AP_MotorsQuad: call normalise_rpy_factors in motor setup
2016-04-01 11:59:30 +09:00
Leonard Hall
7ac4fc5569
AP_MotorsOctaQuad: call normalise_rpy_factors in motor setup
2016-04-01 11:59:30 +09:00
Leonard Hall
e182c10625
AP_MotorsOcta: call noramlise_rpy_factors in motor setup
2016-04-01 11:59:30 +09:00
Leonard Hall
733b89cf3c
AP_MotorsHexa: call noramlise_rpy_factors in motor setup
2016-04-01 11:59:30 +09:00
Leonard Hall
8f8eb7e214
AP_MotorsMatrix: add normalise_rpy_factors
2016-04-01 11:59:30 +09:00
Randy Mackay
e7ba5ae451
AP_MotorsMulticopter: fix get_hover_throttle_as_high_end_pct
2016-04-01 11:59:30 +09:00
Randy Mackay
4514e8d100
AP_MotorsHeli: remove slow_start
2016-04-01 11:59:30 +09:00
Randy Mackay
c41a5dc3bd
AP_MotorsMulticopter: remove slow_start
...
This has been replaced with the spool logic feature
2016-04-01 11:59:30 +09:00
Randy Mackay
b436dde60c
AP_Motors: remove slow_start
...
This has been replaced with the spool logic feature
2016-04-01 11:59:30 +09:00
Randy Mackay
e863f0b9c0
AP_MotorsHeli: use AP_Motors set_radio_passthrough in 0 to 1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
68a6408a23
AP_MotorsMulticopter: remove set_radio_passthrough
...
This has been moved up to the AP_Motors class
2016-04-01 11:59:30 +09:00
Randy Mackay
5ba3a6c536
AP_Motors: add set_radio_passthrough
2016-04-01 11:59:30 +09:00
Randy Mackay
fe4733121d
AP_MotorsHeli_Single: ext_gyro_gain in 0 to 1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
e1e4e37c92
AP_MotorsHeli_Single: use RSC class's get_idle_output function
...
No functional change
2016-04-01 11:59:30 +09:00
Randy Mackay
2cdc5da226
AP_MotorsHeli_Single: rotor speed functions in 0 to 1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
68945df45d
AP_MotorsHeli_Single: write_aux uses 0 to 1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
b3334c3ae5
AP_MotorsHeli: rotor speed function in 0 to 1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
832a226f13
AP_MotorsHeli_RSC: rotor speeds in 0 to 1 range
...
Also move recalc_scalers functionality into update_rotor_ramp and update_rotor_runup
2016-04-01 11:59:30 +09:00
Randy Mackay
4775843e3c
AP_MotorsHeli_RSC: add get_idle_output accessor
2016-04-01 11:59:30 +09:00
Randy Mackay
a63dba5b13
AP_MotorsHeli_Single: servo_test becomes protected
2016-04-01 11:59:30 +09:00
Randy Mackay
cefd114964
AP_MotorsHeli_Single: remove unused accessors for tail_type, ext_gyro_gain, phase_angle
2016-04-01 11:59:30 +09:00
Randy Mackay
f2fc39943e
AP_MotorsHeli_Single: remove unused delta_phase_angle
2016-04-01 11:59:30 +09:00
Randy Mackay
381f538aca
AP_HotorsHeli_Single: remove unused definition
2016-04-01 11:59:30 +09:00
Randy Mackay
27fed39671
AP_MotorsHeli_Single: remove roll_scalar, pitch_scalar
2016-04-01 11:59:30 +09:00
Randy Mackay
756236af35
AP_MotorsHeli: remove unused delta_phase_angle
2016-04-01 11:59:30 +09:00
Randy Mackay
16ac92be82
AP_MotorsHeli: remove unused definitions
2016-04-01 11:59:30 +09:00
Randy Mackay
aeef6692cb
AP_MotorsHeli: remove unused roll_scalar, pitch_scalar, collective_range
2016-04-01 11:59:30 +09:00
Randy Mackay
1a690772e1
AP_Motors: example sketch outputs headers
2016-04-01 11:59:30 +09:00
Randy Mackay
361b64f817
AP_Motors: example sketch uses AP_Motors set_desired_spool_state
2016-04-01 11:59:30 +09:00
Randy Mackay
d4998089c8
AP_Motors: example sketch provides roll, pitch, yaw in -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
93597d152f
AP_Motors: example sketch can test helicopter
2016-04-01 11:59:30 +09:00
Randy Mackay
47873c1d34
AP_MotorsHeli: fix RSC_SETPOINT param description
2016-04-01 11:59:30 +09:00
Randy Mackay
bcbe6b279e
AP_MotorsHeli: explicitely set ServoControlModes enum
...
Non functional change but this enum is tied to a parameter value so the exact value is important
2016-04-01 11:59:30 +09:00
Randy Mackay
8febcedf4b
AP_MotorsHeli: remove unnecessary static declaration
2016-04-01 11:59:30 +09:00
Randy Mackay
f022e504b0
AP_MotorsHeli: remove unused get_collective_mid and out methods
2016-04-01 11:59:30 +09:00
Randy Mackay
a18722a2fc
AP_MotorsHeli: output_min uses new move_actuators in -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
1197a439af
AP_MotorsHeli: move_actuators to -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
8057d2fc58
AP_MotorsMatrix: remove unnecessary virtual declarations
2016-04-01 11:59:30 +09:00
Randy Mackay
c49a914597
AC_AttControlHeli: remove unnecessary virtual declaration
2016-04-01 11:59:30 +09:00
Randy Mackay
2b123ee15d
AC_AttControlHeli: fix rate_bf_to_motor_roll_pitch and yaw output in -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
71866be652
AP_MotorsHeliSingle: move_yaw in -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
f6120b801b
AP_MotorsHeliSingle: move_actuators in -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
61cf8e1698
AP_Motors: add calc_pwm_output_1to1 and 0to1
...
Convenience functions to convert from -1 to +1 input to pwm output
2016-04-01 11:59:30 +09:00
Randy Mackay
56f05e6a96
AP_Motors: add set_desired_spool_state
2016-04-01 11:59:30 +09:00
Randy Mackay
2716126e40
AP_MotorsMulticopter: use desired_spool from AP_Motors class
2016-04-01 11:59:30 +09:00
Randy Mackay
93d1f1969c
AP_MotorsMulticopter: remove set_desired_spool_state
...
This is being moved to AP_Motors
2016-04-01 11:59:30 +09:00
Randy Mackay
4dd4d38b9b
AP_MotorsMulticopter: fix output_to_motors definition
2016-04-01 11:59:30 +09:00
Randy Mackay
c5e5b4f783
AC_AttControl: fix rate controller max definitions to -1 to +1 range
2016-04-01 11:59:30 +09:00
Randy Mackay
3ae9b606ff
AP_Motors: remove unnecessary output_to_motors declaration
...
This is declared down in the AP_MotorsMulticopter
2016-04-01 11:59:30 +09:00
Randy Mackay
f2ff9e34ad
AP_Motors: remove output_armed_zero_throttle
2016-04-01 11:59:30 +09:00
Leonard Hall
979534279a
AC_AttControl: roll, pitch, yaw output to motors in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
879e12ba43
AP_MotorsHeli_Single: roll, pitch, yaw input in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
97f0b00e3e
AP_MotorsHeli: roll, pitch, yaw input in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
b701c109cf
AP_MotorsSingle: roll, pitch, yaw input in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
1a308c2eb8
AP_MotorsCoax: roll, pitch, yaw input in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
4d208fcd47
AP_MotorsTri: roll, pitch, yaw input in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
027284fba0
AP_MotorsMatrix: roll, pitch, yaw input in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
ae4e495698
AP_Motors: roll, pitch, yaw input in -1 to +1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
90b3d7ca39
AP_Motors: example sketch tests stab patch more thoroughly
2016-04-01 11:59:30 +09:00
Leonard Hall
cef3f42df5
AP_Motors: fix example make.inc
2016-04-01 11:59:30 +09:00
Leonard Hall
1174ad3e66
AC_InputManager_Heli: get_pilot_desired_throttle in 0 to 1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
d312e52aee
AC_InputManager: add f for float constants
2016-04-01 11:59:30 +09:00
Leonard Hall
c64a505906
AC_PosControl: relax_alt_hold_controllers accepts throttle in 0 to 1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
15be80a25d
AC_PosControl: accel_to_throttle outputs 0 to 1
2016-04-01 11:59:30 +09:00
Leonard Hall
e5d6d45851
AC_AttControl_Heli: angle_boost to float
2016-04-01 11:59:30 +09:00
Leonard Hall
2822b93cd4
AC_AttControl: add get_throttle_in accessor
...
Used for logging only
2016-04-01 11:59:30 +09:00
Leonard Hall
c0f209fa42
AC_AttControl: angle_boost to float
2016-04-01 11:59:30 +09:00
Leonard Hall
6f29bbafb4
AC_AttControl_Multi: get_althold_lean_angle_max uses motor thrust in 0 to 1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
24f975c16a
AC_AttControl_Multi: fix throttle boost for 0 to 1
2016-04-01 11:59:30 +09:00
Leonard Hall
bab08cbcc1
AC_AttControl_Multi: add divide by zero check
2016-04-01 11:59:30 +09:00
Leonard Hall
d2a1cdf906
MotorsHeli: replace throttle_control_input with throttle_in
...
throttle_control_input was 0 to 1000 range, throttle_in is 0 to 1
2016-04-01 11:59:30 +09:00
Leonard Hall
f02e8f8e01
AP_MotorsHeli: remove output_armed_not_stabilizing
2016-04-01 11:59:30 +09:00
Leonard Hall
5cd4b78918
AP_MotorsSingle: remove reverse parameters
...
No longer necessary because we can use individual servo reverse params
2016-04-01 11:59:30 +09:00
Leonard Hall
6264159f4d
AP_MotorsSingle: move servo objects into Single class
2016-04-01 11:59:30 +09:00
Leonard Hall
21d304b86d
AP_MotorsSingle: output_to_motors implements spool logic
2016-04-01 11:59:30 +09:00
Leonard Hall
24a100e429
AP_MotorsSingle: stability patch uses 0 to 1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
cffdced838
AP_MotorsSingle: support 4 servo outputs
2016-04-01 11:59:30 +09:00
Leonard Hall
f53d6e95e8
AP_MotorsSingle: rename _rev_roll to _roll_reverse
...
Also rename _rev_pitch to _pitch_reverse and _rev_yaw to _yaw_reverse
2016-04-01 11:59:30 +09:00
Leonard Hall
4db73d86af
AP_MotorsSingle: remove output_disarmed
2016-04-01 11:59:30 +09:00
Leonard Hall
46ab198ebc
AP_MotorsSingle: remove output_armed_not_stabilizing
2016-04-01 11:59:30 +09:00
Leonard Hall
40c18891cf
AP_MotorsCoax: remove reverse parameters
...
No longer necessary because we can use individual servo reverse params
2016-04-01 11:59:30 +09:00
Leonard Hall
260006dcb3
AP_MotorsCoax: move servo objects into Coax class
2016-04-01 11:59:30 +09:00
Leonard Hall
110d41ee24
AP_MotorsCoax: fix SV_SPEED param description
2016-04-01 11:59:30 +09:00
Leonard Hall
8d8f52b22f
AP_MotorsCoax: output_to_motors implements spool logic
2016-04-01 11:59:30 +09:00
Leonard Hall
b85c20bb65
AP_MotorsCoax: stability patch in 0 to 1 range
...
Also removes setting of limits in stability patch
sets outputs for additional 2 servos
2016-04-01 11:59:30 +09:00
Leonard Hall
7df9b2eb8c
AP_MotorsCoax: support 4 servo outputs
2016-04-01 11:59:30 +09:00
Leonard Hall
7d6c6b5556
AP_MotorsCoax: rename _rev_roll to _roll_reverse
...
Also rename _rev_pitch to _pitch_reverse and _rev_yaw to _yaw_reverse
2016-04-01 11:59:30 +09:00
Leonard Hall
5cb44901ff
AP_MotorsCoax: remove output_disarmed
2016-04-01 11:59:30 +09:00
Leonard Hall
3df52aad5f
AP_MotorsCoax: remove output_armed_not_stabilizing
2016-04-01 11:59:30 +09:00
Leonard Hall
45a16d6dad
AP_MotorsTri: implement output_to_motors for spool logic
2016-04-01 11:59:30 +09:00
Leonard Hall
d0a7579fa0
AP_MotorsTri: stability patch in 0 to 1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
80f77bc30b
AP_MotorsTri: output_min does not set limits
2016-04-01 11:59:30 +09:00
Leonard Hall
ba659be5cb
AP_MotorsTri: rename _yaw_servo_reverse to _yaw_reverse
2016-04-01 11:59:30 +09:00
Leonard Hall
8c4d6d6fbe
AP_MotorsTri: remove output_disarmed
2016-04-01 11:59:30 +09:00
Leonard Hall
a2fdcfaf3f
AP_MotorsTri: remove output_armed_not_stabilizing
2016-04-01 11:59:30 +09:00
Leonard Hall
397940a9a4
AP_MotorsMatrix: implement output_to_motors
2016-04-01 11:59:30 +09:00
Leonard Hall
cdec8f3387
AP_MotorsMatrix: remove output_disarmed
2016-04-01 11:59:30 +09:00
Leonard Hall
b965857229
AP_MotorsMatrix: remove output_armed_not_stabilizing
2016-04-01 11:59:30 +09:00
Leonard Hall
d0c6d087a5
AP_MotorsMatrix: do not set limits in output_min
2016-04-01 11:59:30 +09:00
Leonard Hall
3fef60da45
AP_MotorsMatrix: stability patch in 0 to 1 range
...
Includes storing motor level thrusts to _thrust_rpyt_out
rename _throttle_thr_mix_desired to _throttle_rpy_mix_desired
rename _throttle_thr_mix to _throttle_rpy_mix
use get_hover_throttle_as_high_end_pct
use throttle_thrust_max updated by multicopter spool logic
do not set limits in stability patch
2016-04-01 11:59:30 +09:00
Leonard Hall
5841310ac7
AP_MotorsMulticopter: update_throttle_filter limits throttle to 0 to 1
2016-04-01 11:59:30 +09:00
Leonard Hall
420b90953c
AP_MotorsMulticopter: throttle_radio_min, max to multicopter class
...
Moved in from Motors class, only ever used by multicopters
No functional change
2016-04-01 11:59:30 +09:00
Leonard Hall
2c9a02066d
AP_MotorsMulticopter: remove unused functions and variables
2016-04-01 11:59:30 +09:00
Leonard Hall
290e657f61
AP_MotorsMulticopter: update_battery_resistance captures resting voltage while disarmed
...
Previously it could also capture this when the input throttle was zero
2016-04-01 11:59:30 +09:00
Leonard Hall
bc42cb2a66
AP_MotorsMulticopter: update_battery_resistance uses get_throttle accessor
2016-04-01 11:59:30 +09:00
Leonard Hall
8228d9e72c
AP_MotorsMulticopter: current_limit_max_throttle uses get_throttle accessor
2016-04-01 11:59:30 +09:00
Leonard Hall
3cbc15bb5b
AP_MotorsMulticopter: add get_throttle_thrust_max accessor
2016-04-01 11:59:30 +09:00
Leonard Hall
d7dc37bda0
AP_MotorsMulticopter: remove apply_thrust_curve_and_volt_scaling_pwm
2016-04-01 11:59:30 +09:00
Leonard Hall
06f25b669d
AP_MotorsMulticopter: add roll, pitch, throttle and yaw pass through
2016-04-01 11:59:30 +09:00
Leonard Hall
d7c27c949c
AP_MotorsMulticopter: add spool_up_complete accessor function
2016-04-01 11:59:30 +09:00
Leonard Hall
983d2dc97a
AP_MotorsMulticopter: update_throttle_filter does not set throttle_in
...
get_throttle method now used to access filtered throttle
2016-04-01 11:59:30 +09:00
Leonard Hall
3fc3858fbd
AP_MotorsMulticopter: set_throttle_range calcs _min_throttle before use
2016-04-01 11:59:30 +09:00
Leonard Hall
b26318c178
AP_MotorsMulticopter: output_logic implements spooling
2016-04-01 11:59:30 +09:00
Leonard Hall
b7fe6aa16e
AP_MotorsMulticopter: remove update_max_throttle
2016-04-01 11:59:30 +09:00
Leonard Hall
be64c71065
AP_MotorsMulticopter: add get_current_limit_max_throttle
...
returns the current limited maximum throttle as a number between 0 ~ 1 in the range throttle_min to throttle_max
2016-04-01 11:59:30 +09:00
Leonard Hall
64ba45a683
AP_MotorsMulticopter: add spin_when_armed_low_end_pct
...
returns the spin-when-armed value as a number from 0 to 1 in the range 0 to throttle_min
2016-04-01 11:59:30 +09:00
Leonard Hall
49819d822f
AP_MotorsMulticopter: add get_hover_throttle_as_high_end_pct
...
Returns hover throttle as a number from 0 to 1 in the range from throttle_min to throttle_max
2016-04-01 11:59:30 +09:00
Leonard Hall
e625c105a4
AP_MotorsMulticopter: remove get_throttle_warn
2016-04-01 11:59:30 +09:00
Leonard Hall
3854f2eda7
AP_MotorsMulticopter: rename _throttle_thr_mix_desired to _throttle_rpy_mix_desired
...
No functional change
Also rename _throttle_thr_mix to _throttle_rpy_mix
2016-04-01 11:59:30 +09:00
Leonard Hall
65bbc23a08
AP_MotorsMulticopter: apply_thrust_curve_and_volt_scaling in 0 to 1 range
...
existing equivalent pwm function becomes apply_thrust_curve_and_volt_scaling_pwm
2016-04-01 11:59:30 +09:00
Leonard Hall
cb39f8aab7
AP_MotorsMuticopter: calc_thrust_to_pwm converts thrust in 0 to 1 range to pwm
...
pwm output is always between throttle min and throttle max
2016-04-01 11:59:30 +09:00
Leonard Hall
80ddce103f
AP_Motors: move set_throttle_filter_cutoff declaration
...
No functional change
2016-04-01 11:59:30 +09:00
Leonard Hall
649a8c461d
AP_Motors: remove unused throttle_radio_min, max
...
Moved to AP_MotorsMulticopter
2016-04-01 11:59:30 +09:00
Leonard Hall
e84011603c
AP_Motors: remove unused throttle_pwm_scalar, rpy_pwm_scalar
2016-04-01 11:59:30 +09:00
Leonard Hall
8e1351e474
AP_Motors: init member to resolve compiler warning
2016-04-01 11:59:30 +09:00
Leonard Hall
ed51c7a28d
AP_Motors: replace throttle_control_input with throttle_in
...
throttle_control_input was 0 to 1000 range, throttle_in is 0 to 1
2016-04-01 11:59:30 +09:00
Leonard Hall
c96b91efb6
AP_Motors: add output_to_motors
2016-04-01 11:59:30 +09:00
Leonard Hall
ac579685df
AP_Motors: remove output_armed_not_stabilizing
2016-04-01 11:59:30 +09:00
Leonard Hall
666a92ae2f
AP_Motors: set_throttle accepts 0 to 1 range
2016-04-01 11:59:30 +09:00
Leonard Hall
3c74b4cc69
Motors: add get_roll_thrust which returns roll input in range 0 to 1
...
Also added get_pitch_thrust, get_yaw_thrust
2016-04-01 11:59:30 +09:00
Lucas De Marchi
f304fcf4da
AP_InertialSensor: examples: add coding style fixes
...
Several coding style problems were already fixed by previous commit,
just finish the cleanup on this example:
- replace tabs with spaces
- remove unneeded \r
- remove extra spaces
2016-03-31 14:54:17 -03:00
AndersonRayner
10e7d43007
AP_InertialSensor: Add output of all IMUs to example
2016-03-31 14:54:17 -03:00
Lucas De Marchi
a502c0924c
GCS_MAVLink: simplify sanity check
2016-03-30 01:32:45 -03:00
Francisco Ferreira
d3e149e5d7
GCS_MAVLink: ignore Clang out-of-range warning
...
warning: comparison of constant 4 with expression of type 'mavlink_channel_t' is always false [-Wtautological-constant-out-of-range-compare]
if (chan >= MAVLINK_COMM_NUM_BUFFERS) {
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
2016-03-30 01:32:45 -03:00
Marc MERLIN
5bcd1b02ef
RSSI channel is not limited to 5-8.
...
Fix doc per my request on https://github.com/ArduPilot/ardupilot/issues/3280
2016-03-29 08:16:42 -07:00
Tom Pittenger
6718241dad
cleanup comments
2016-03-29 05:32:28 -07:00
Andrew Tridgell
894e07a0bd
AP_Parachute: added CHUTE_DELAY_MS parameter
...
on fixed wing it may take quite some time for the propeller to stop
2016-03-29 05:48:40 +11:00
Andrew Tridgell
73a2c99d56
SITL: limit rotational rate to 2000dps
2016-03-26 14:23:05 +11:00
Andrew Tridgell
4d01cb1716
HAL_SITL: fixed SITL engine mul error
...
expression without get() was treated as int
2016-03-26 14:17:12 +11:00
Andrew Tridgell
b4c6a0e30e
AP_TECS: added logging of speed_weight and state flags
2016-03-26 08:41:09 +11:00
Andrew Tridgell
8ff932b61c
AP_TECS: allow underspeed to end faster
...
we now can exit an underspeed condition if we stay above min speed for
3 seconds and also reach 15% above min speed. This prevents a problem
with the thrust line causing downpitch leading to a crash due to too
much throttle
2016-03-26 07:44:22 +11:00
Andrew Tridgell
1ecfa6b487
RC_Channel: fixed example in SITL
2016-03-25 21:35:33 +11:00
Andrew Tridgell
5c92adddf9
HAL_SITL: allow examples to run under SITL
2016-03-25 21:35:16 +11:00
Andrew Tridgell
1e4fe7996e
HAL_Linux: update URL
2016-03-25 20:47:53 +11:00
Andrew Tridgell
9737050a23
HAL_FLYMAPLE: update URL
2016-03-25 20:47:44 +11:00
Andrew Tridgell
664d91802e
HAL_AVR: update URL
2016-03-25 20:47:35 +11:00
Andrew Tridgell
075dd49afe
DataFlash: added Log_Write_Rate()
...
needed for quadplane as well as copter so should be in common code
2016-03-25 12:13:58 +11:00
Andrew Tridgell
ab07781c66
APM_Control: raise default P and I gains, and set a lower limit on I for pitch
...
Too many users have very low I gains, which causes a lot of problems for TECS
2016-03-25 09:54:53 +11:00
Lucas De Marchi
46936767c1
AP_Compass: LSM303D: check for overruns in compass values
2016-03-23 17:50:38 -03:00
Lucas De Marchi
cf2d866d51
AP_Compass: LSM303D: used AP_HAL::Device interface
...
Initialization was also changed a little bit so we don't try to
initialize 25 times. We rather use the same methods as in the
AP_InertialSensor drivers.
Also move up the call to is_zero() in read_raw so we don't set
_mag_[x|y|z] in case of failure.
2016-03-23 17:50:38 -03:00
Lucas De Marchi
5164fbb81b
AP_Compass: LSM303D: cleanup driver
...
Make it similar to other compass drivers, including method names.
2016-03-23 17:50:38 -03:00
Lucas De Marchi
20a4a42cb3
AP_Compass: don't store raw and unfiltered fields
...
These are not used. The only place where raw fields are used are in the
compass calibrator and we don't need to store them.
Additionally remove duplicated documentation about the meaning of the
functions to avoid them getting out of sync.
2016-03-23 17:50:38 -03:00
Lucas De Marchi
e6059f5197
AP_Compass: rename files to follow other libraries
...
AP_Compass.h is the main header to be exported and AP_Compass.cpp its
implementation. There's no need for an additional header.
2016-03-23 17:50:38 -03:00
Lucas De Marchi
286697b844
AP_Compass: don't rebuild tree when single driver changes
...
Let the drivers be internal to the library so we don't need to rebuild
the entire tree when a single driver changes.
2016-03-23 17:50:38 -03:00
Lucas De Marchi
d3831dbb98
AP_Compass: AK8963: use AP_HAL::I2CDevice abstraction
...
We still need the BusDriver (in some places called SerialBus) interface
since this driver can also be used on an AuxiliaryBus and that has a
different interface.
2016-03-23 17:50:38 -03:00
Lucas De Marchi
41c1209169
AP_Compass: HMC5843: improve readability
...
- Capitalize and rename constants
- Make clear what gain is applied in calibration and what is the
"normal" gain
- Make the separation between HMC5883L and HMC5843 explicit when it
makes sense to improve readability
- Remove spurious delay in calibrate function
2016-03-23 17:50:38 -03:00
Lucas De Marchi
0291ad869b
AP_Compass: HMC5843: use AP_HAL::I2CDevice abstraction
...
We still need the BusDriver (in some places called SerialBus) interface
since this driver can also be used on an AuxiliaryBus and that has a
different interface.
Besides the usual conversion some more improvements:
- Use generic function to convert endianness
- Minor cleanups
- Reorder per-board ifdefs in compass instantiation: distinguish when
there's a default compass to when it should probe other compasses
2016-03-23 17:50:38 -03:00
Lucas De Marchi
57f8db5672
AP_HAL: sparse-endian: conditionally include byteswap header
...
This is not present in qurt.
2016-03-23 17:50:38 -03:00
Lucas De Marchi
c5dc54dac7
AP_HAL: utility: import sparse-endian header
2016-03-23 17:50:38 -03:00
Lucas De Marchi
0ed3a93142
AP_HAL: define compass locations for linux boards
2016-03-23 17:50:38 -03:00
ashwinvasudevan
e33812e1cb
AP_InertialSensor: added missing brackets
2016-03-23 17:46:41 +09:00
Lucas De Marchi
72b246e52c
AP_HAL_Linux: fix use of 0-length array
...
0-length arrays are supported in C but forbidden in C++. GCC allows it
but clang is more strict:
../../libraries/AP_HAL_Linux/SPIDriver.cpp:75:35: fatal error: no matching constructor for initialization of 'Linux::SPIDeviceDriver [0]'
SPIDeviceDriver SPIDeviceManager::_device[0];
^
../../libraries/AP_HAL_Linux/SPIDriver.h:20:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 0 were provided
class SPIDeviceDriver : public AP_HAL::SPIDeviceDriver {
^
../../libraries/AP_HAL_Linux/SPIDriver.h:20:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided
../../libraries/AP_HAL_Linux/SPIDriver.h:25:5: note: candidate constructor not viable: requires 9 arguments, but 0 were provided
SPIDeviceDriver(const char *name, uint16_t bus, uint16_t subdev, enum AP_HAL::SPIDeviceType type, uint8_t mode, uint8_t bitsPerWord, int16_t cs_pin, uint32_t lowspeed, uint32_t highspeed);
^
1 error generated.
2016-03-20 00:17:02 -03:00
Andrew Tridgell
da2a71a3de
AP_BoardConfig: raise uavcan startup delay to 2s
2016-03-19 21:18:05 +11:00
Lucas De Marchi
abbe419823
AP_Compass: fix mismatched tag
...
In file included from /home/lucas/p/dronecode/ardupilot/libraries/AP_Compass/Compass.h:6:
/home/lucas/p/dronecode/ardupilot/libraries/AP_Compass/CompassCalibrator.h:86:5: warning: struct 'param_t' was previously declared as a class [-Wmismatched-tags]
struct param_t _params;
^
/home/lucas/p/dronecode/ardupilot/libraries/AP_Compass/CompassCalibrator.h:44:11: note: previous use is here
class param_t {
^
/home/lucas/p/dronecode/ardupilot/libraries/AP_Compass/CompassCalibrator.h:86:5: note: did you mean class here?
struct param_t _params;
^~~~~~
2016-03-18 22:39:39 -03:00
Lucas De Marchi
d5d6a10e63
AP_Compass: LSM303D now is part of LSM9DS0
2016-03-18 21:51:37 -03:00
Lucas De Marchi
a671b7f5b2
AP_Compass: remove misleading message
...
Not having data ready during initialization is normal. Don't print error
message since it can mislead people to think the compass was not
initialized successfully.
2016-03-18 21:51:37 -03:00
raspilot
1d1d224c18
AP_InertialSensor: Enable dual IMU for raspilot
2016-03-18 21:51:37 -03:00
raspilot
9d787e44cc
AP_HAL_Linux: update spi table for raspilot
2016-03-18 21:51:37 -03:00
Lucas De Marchi
c5022ef5c9
AP_HAL: add names for LSM9DS0 on raspilot
2016-03-18 21:51:37 -03:00
Lucas De Marchi
f75c12f57c
AP_InertialSensor: LSM9DS0: change mode of drdy pins to input
2016-03-18 21:51:37 -03:00
raspilot
c83e4df002
AP_InertialSensor: LSM9DS0: Disable I2C at init to avoid SDA hanging by slave.
2016-03-18 21:51:37 -03:00
raspilot
557beb4bb1
AP_InertialSensor: LSM9DS0: Fixed wrong call to _register_read_xm()
2016-03-18 21:51:37 -03:00
Lucas De Marchi
c1623c21cc
AP_HAL_Linux: rename ToneAlarmDriver to follow other names
...
We don't add "Driver" to the name of the files anymore.
2016-03-18 21:51:37 -03:00
Lucas De Marchi
d52ee7c0a1
AP_HAL_Linux: ToneAlarmDriver_Raspilot: cleanup driver
...
- Fix coding style
- Remove unused variables and members
- Add virtual as needed and override where needed
2016-03-18 21:51:36 -03:00
Pritam Ghanghas
6de5b52974
AP_HAL_Linux: separate class for tone alarm driver
2016-03-18 21:51:36 -03:00
Michael Oborne
92106a944f
AP_GPS_UBLOX: add data injection support
2016-03-18 15:51:32 +11:00
Andrew Tridgell
eb89b5bbb6
AP_L1_Control: prevent possibly fly-away when passed waypoint in L1
...
if the top level controller doesn't consider a waypoint complete when
we are passed next_WP then it would keep flying away from the line
segment. This doesn't happen with the current master code, but we want
to ensure it is handled
2016-03-18 13:47:44 +11:00
Andrew Tridgell
7d92202db9
AP_Param: save flash space for parameter strings
...
now that we no longer need AVR support we can use nul terminated
strings for parameter names, saving a couple of k of flash space
2016-03-18 13:03:18 +11:00
Andrew Tridgell
692e042eac
AP_Arming: set AP_PARAM_NO_SHIFT
2016-03-18 12:33:45 +11:00
Andrew Tridgell
4deb01b8d5
RC_Channel: set AP_PARAM_NO_SHIFT
2016-03-18 12:33:34 +11:00
Andrew Tridgell
018c7425a4
AP_Param: added AP_PARAM_NO_SHIFT
...
used for cases where we know the shift is not needed
2016-03-18 12:33:16 +11:00
Andrew Tridgell
1d42b0281a
SITL: ADSB: fixed heading and fixed windows startup
2016-03-18 11:18:19 +11:00
Andrew Tridgell
71b6d3e33d
AP_Param: add in nested group offset in load for conversion
2016-03-18 10:04:56 +11:00
Randy Mackay
c15fa950c0
AP_Param: convert_old_parameter becomes public and accepts scaling
2016-03-18 10:04:55 +11:00
Andrew Tridgell
12067b27b3
AP_Param: cope with multi-level nesting and zero-idx
...
this copes properly with multi-level nesting of groups, and fixes an
issue with an idx of zero in nested groups
2016-03-18 10:04:55 +11:00
Lucas De Marchi
d8eb0d401d
AP_Compass: fix missing rename
...
cb8355c
(AP_HAL: fix compass define for bebop) renamed the constant in
AP_HAL but not in AP_Compass.
2016-03-17 11:49:38 -03:00
Lucas De Marchi
b3d26c5988
AP_Compass: remove trailing whitespaces in header
2016-03-17 02:57:05 -03:00
Lucas De Marchi
cb8355c315
AP_HAL: fix compass define for bebop
2016-03-17 02:55:51 -03:00
Lucas De Marchi
057822b51c
AP_InertialSensor: AuxiliaryBus: fix return value
...
We should return the number of bytes written/read, not 0 on success.
This number may be useful in some cases so return it.
While at it fix a simple wrong space in the header.
2016-03-17 02:55:39 -03:00
Lucas De Marchi
6a6175df1c
AP_HAL_Linux: move dirname to I2CDevice core
...
All entries would need the "devices/" prefix and it's more natural not
using it.
2016-03-17 02:55:31 -03:00
Peter Barker
a66da7be00
AP_Motors: correct parameter documenation
2016-03-17 16:10:10 +11:00
Don Gagne
cae7ea0d13
Add @Volatile, @ReadOnly support
2016-03-17 10:58:05 +11:00
Paul Riseborough
6d9ba8c527
AP_NavEKF2: Improve protection against ground based mag interference
...
Reset the mag field states and yaw earlier than the normal 5m height threshold if toilet bowling is detected.
2016-03-17 10:55:11 +11:00
Lucas De Marchi
08cc7b2472
RC_Channel: replace header guard with pragma once
2016-03-16 18:40:44 +11:00
Lucas De Marchi
96c30aea39
PID: replace header guard with pragma once
2016-03-16 18:40:44 +11:00
Lucas De Marchi
c2b5ad46b4
GCS_MAVLink: replace header guard with pragma once
2016-03-16 18:40:44 +11:00
Lucas De Marchi
96ad73d198
GCS_Console: replace header guard with pragma once
2016-03-16 18:40:44 +11:00
Lucas De Marchi
ec36e06c63
DataFlash: replace header guard with pragma once
2016-03-16 18:40:44 +11:00
Lucas De Marchi
80749af698
AP_Vehicle: replace header guard with pragma once
2016-03-16 18:40:44 +11:00
Lucas De Marchi
8fcf551505
AP_Terrain: replace header guard with pragma once
2016-03-16 18:40:44 +11:00
Lucas De Marchi
9271e97c0b
AP_TECS: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
0d2f661a6c
AP_SpdHgtControl: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
9c28730815
AP_ServoRelayEvents: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
d82369b293
AP_SerialManager: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
336e04ca60
AP_RSSI: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
109f807260
AP_RPM: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
0332cde374
AP_Relay: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
41d5f4a3b1
AP_RCMapper: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
f6712c8bc4
AP_RangeFinder: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Lucas De Marchi
f908dffbeb
AP_Rally: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
b180f3a83f
AP_Parachute: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
5518cb2b01
AP_Navigation: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
bb0d96cedd
AP_NavEKF: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
e40b87cd0e
AP_NavEKF2: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
3a771bf0e3
AP_Mount: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
7d9153feb8
AP_Motors: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
d82e80c749
APM_OBC: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
2790c16905
AP_Mission: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
9c4f93244e
AP_Menu: replace header guard with pragma once
2016-03-16 18:40:42 +11:00
Lucas De Marchi
382b6f87fe
APM_Control: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
b4a8a0b961
AP_Math: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
83f11145d5
AP_LandingGear: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
7ad0036a11
AP_L1_Control: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
152f169b76
AP_IRLock: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
79837c343f
AP_InertialNav: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
44bc2eceb4
AP_HAL_VRBRAIN: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
bcdc3336de
AP_HAL_SITL: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
6f028502b0
AP_HAL_QURT: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
28f67f0947
AP_HAL_PX4: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Lucas De Marchi
f7a983e525
AP_HAL_FLYMAPLE: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
cd266fbf4f
AP_GPS: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
761ed7ae03
AP_Frsky_Telem: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
37d7a8214d
AP_EPM: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
d721ad70eb
AP_Camera: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
235d64b7b9
AP_BoardConfig: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
39f39afa7b
AP_Arming: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
ffe36afeb2
AP_Airspeed: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
e0153faa85
AP_AHRS: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Lucas De Marchi
5047f2b6f8
AP_ADSB: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
155fb6f600
AP_AccelCal: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
3ae4c222e0
AC_WPNav: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
65680c8b8d
AC_Sprayer: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
4e9ca31cb9
AC_PrecLand: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
f637a29ab6
AC_PID: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
498693d0b8
AC_InputManager: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
7dc3942ad4
AC_Fence: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Lucas De Marchi
f42484bcc5
AC_AttitudeControl: replace header guard with pragma once
2016-03-16 18:40:39 +11:00
Andrew Tridgell
ff04871fc5
AP_Param: fixed a reporting problem with AP_Vector3f
...
if we load an element other than the X element of a Vector3f via
MAVLink then the value reported back to the GCS would be at the wrong
offset in memory. This led to some very confusing results for users
2016-03-16 17:03:30 +11:00
Tom Pittenger
425c9bcd0b
AP_Arming: use AP_BATT_MONITOR_MAX_INSTANCES instead of fixed array size
2016-03-14 09:19:09 -07:00
Tom Pittenger
5872512d85
AP_Arming: added more info to battery arming failure
2016-03-14 09:16:14 -07:00
Michael du Breuil
21bdf32d33
AP_Arming: Add minimum voltage to arm
2016-03-14 09:06:57 -07:00
Gustavo Jose de Sousa
4613b68efb
AP_InertialSensor: waf: skip VibTest example
...
The code is currently broken.
2016-03-14 11:54:31 -03:00
Gustavo Jose de Sousa
6729475b25
AP_Math: fix eulers example for PX4
2016-03-14 11:54:31 -03:00
Gustavo Jose de Sousa
d9bb696fa3
AP_Math: avoid bias in rand_num() in eulers example
...
Use RAND_MAX to avoid bias.
2016-03-14 11:54:31 -03:00
Andrew Tridgell
b0ac6c26e0
SITL: support octaquad in quadplane sim
2016-03-13 10:12:14 +11:00
Andrew Tridgell
2a6e64e358
HAL_PX4: send all channels to px4io
...
this allows for 16 channel SBUS out
2016-03-13 10:03:56 +11:00
Jonathan Challinger
4bf3ec0e91
AP_HAL_PX4: implement RCOutput::read_last_sent
2016-03-10 13:56:27 -08:00
Jonathan Challinger
6663d30728
AP_HAL: add RCOutput::read_last_sent definition
2016-03-10 13:56:23 -08:00
Tom Pittenger
a85d4f2f4b
AP_TECS: reverse-thrust cleanup
...
- throttle slew rate was using % full range including the negative range (-100 to +100 instead of 0 to 100) which meant it was faster
- throttle integrator windup limit was higher than normal because it's a porportional to throttle max - min but that makes no sense when min is negative causing larger limits
2016-03-10 15:34:52 +11:00
Andrew Tridgell
36177526cf
AP_BoardConfig: allow setting of SBUS output frame rate
2016-03-10 15:28:46 +11:00
Lucas De Marchi
4467929692
AP_Notify: add class to turn LED off
...
On early versions of minlure an RGB LED was wrongly placed next to the
barometer, causing trouble on it.
Additionally depending on the LED intensity it may be a pain to leave it
turned on for boards supposed to be used for bench testing. This allows
to disable the LED by software so we don't have to remove it.
2016-03-09 20:46:06 -03:00
Gustavo Jose de Sousa
e5de4f2348
AP_Compass: AP_Compass_test: code enhancements
...
- Use panic() instead of looping forever.
- Readability improvement with the use of MAX() and MIN().
2016-03-09 10:12:14 -03:00
Gustavo Jose de Sousa
a61f9855d3
AP_Compass: AP_Compass_test: report multiple compasses
...
Report data from all available compasses, not just the primary one.
2016-03-09 10:12:10 -03:00
Gustavo Jose de Sousa
16acca865f
AP_Compass: AP_Compass_test: fix style
...
Used uncrustify and some manual changes.
2016-03-09 10:12:05 -03:00
Gustavo Jose de Sousa
0efbe8c80c
AP_Compass: allow calling calculate_heading() for different instances
2016-03-09 10:12:00 -03:00
Lucas De Marchi
6358876f58
AP_HAL: add missing MPU9250 name for BH
2016-03-07 14:50:14 -03:00
Lucas De Marchi
71eefdfd2c
AP_Compass: remove trailing whitespaces
2016-03-07 14:49:35 -03:00
Lucas De Marchi
a46ca4c810
AP_Compass: HMC5883: reorganize header
2016-03-07 14:49:35 -03:00
Holger Steinhaus
d2b6eb7700
AP_BoardConfig: wait for UAVCAN initialization complete signal
2016-03-05 09:32:13 +11:00
Holger Steinhaus
503e196546
AP_BoardConfig: allow to enable UAVCAN plug-and-play mode
2016-03-05 09:32:13 +11:00
Andrew Tridgell
d0b67ce007
AP_AHRS: allow for EKF without GPS on plane in VTOL modes
...
this allows for testing quadplanes indoors
2016-03-05 08:58:08 +11:00
Andrew Tridgell
5d5c398344
AP_BoardConfig: raise UAVCAN startup time
...
new version needs a longer time to start sensors
2016-03-04 14:57:16 +11:00
Lucas De Marchi
47be4b5868
AP_OpticalFlow: fix use of undefined variable
...
../../libraries/AP_OpticalFlow/AP_OpticalFlow_Onboard.cpp:86:5: warning: "FLOWONBOARD_DEBUG" is not defined [-Wundef]
#if FLOWONBOARD_DEBUG
^
2016-03-03 18:37:15 -03:00
Tom Pittenger
ff249788bf
Plane: add a default Navigation option as explained in the param docs
2016-03-03 09:16:26 -08:00
Paul Riseborough
1e8af3dea4
AP_Notify: Add tone sequence to alert user when throw detector is armed
...
Use a medium tempo ascending three tone sequence with sufficient gap to allow the throwing action to be completed without distraction.
2016-03-03 12:18:16 +09:00
Tom Pittenger
67e2db7975
AP_TECS: add TECS_LAND_PDAMP
...
// @Description: This is the damping gain for the pitch demand loop. Increase to add damping to correct for oscillations in speed and height. If set to 0 then TECS_PTCH_DAMP will be used instead.
2016-03-02 10:54:21 -08:00
Tom Pittenger
fcb802cccc
AP_TECS: add TECS_LAND_I_GAIN and TECS_TKOFF_I_GAIN
...
// more integral gain options for land
2016-03-02 10:54:20 -08:00
Tom Pittenger
a139789693
AP_TECS: add TECS_LAND_TDAMP for land damp
...
+ // @Description: This is the damping gain for the throttle demand loop during and auto-landing. Same as TECS_THR_DAMP but only in effect during an auto-land. Increase to add damping to correct for oscillations in speed and height. When set to 0 landing throttle damp is controlled by TECS_THR_DAMP.
2016-03-02 10:54:19 -08:00
Tom Pittenger
035f3b16a1
AP_BattMonitor: add new param BATT_WATT_MAX
...
Description: If battery wattage (voltage * current) exceeds this value then the system will reduce max throttle (THR_MAX and TKOFF_THR_MAX) to satisfy this limit. This helps limit high current to low C rated batteries regardless of battery voltage. The max throttle will slowly grow back to THR_MAX (or TKOFF_THR_MAX) if demanding the current max and under the watt max.
2016-03-02 10:14:25 -08:00
Tom Pittenger
278fb2e60d
AP_Math: add location sanity checker/fixer util
2016-03-02 08:48:26 -08:00
Tom Pittenger
1c513a99a0
AP_Mission: removed LOITER_TO_ALT heading requirement param field
...
- and increased loiter radius max size (8bit to 16bit), it will soon always have heading requirement along with all loiter cmds
2016-03-02 08:48:24 -08:00
Alexey Bulatov
3933ac2a63
AP_GPS: Added ERB to AP_GPS
2016-03-02 06:04:52 -08:00
Alexey Bulatov
7e2c822499
AP_GPS: Structure for detect ERB
2016-03-02 06:04:46 -08:00
Alexey Bulatov
97190c89d1
AP_GPS: ERB GPS driver
...
ERB - Emlid Reach Binary protocol.
That driver designed for communication between Reach
and ArduPilot.
Provided opportunities:
- Detection of the driver
- Parsing of input messages: status of transmitter
and navigation information.
- Inject GPS messages from base
2016-03-02 06:04:39 -08:00
Jonathan Challinger
e946e047e6
AC_AttitudeControl: add attitude_controller_run functions, call from input functions
2016-03-02 20:16:18 +09:00
Tom Pittenger
c0a6a94936
AP_IntertialNav: ensure we work on valid updated data
2016-03-02 10:53:07 +09:00
Paul Riseborough
38b3625ed8
AP_NavEKF2: Fix bug in initial alignment calculation
...
The bug caused the initial roll angle to be incorrect if the vehicle was powered up when inverted, causing long alignment times.
2016-03-02 09:10:09 +09:00
Paul Riseborough
2888bdd6d5
AP_NavEKF: Protect against possible div by 0
2016-03-01 10:08:47 -03:00
Paul Riseborough
7d6b926749
AP_NavEKF2: Improved magnetic heading fusion
...
Use an Euler yaw heading that switches between a 321 and 312 rotation
sequence to avoid areas of singularity. Using Euler yaw decouples the
observation from the roll and pitch states and prevents magnetic
disturbances from affecting roll and pitch via the magnetometer fusion
process.
2016-03-01 10:08:47 -03:00
Randy Mackay
e502e0fc2e
SoloGimbal: resolve compiler warning re float comparison
2016-03-01 21:51:43 +09:00
Randy Mackay
438769c8ae
SoloGimbal: resolve compiler warning re initialisation order
2016-03-01 21:51:41 +09:00
Paul Riseborough
bb74371c58
AP_NavEKF2: Do not use GPS height if GPS accuracy is poor
...
If we are using GPS height, revert back to using Baro height if the GPS accuracy is poor.
2016-03-01 15:13:13 +09:00
Tom Pittenger
b1ea82079e
AP_Rangefinder: compiler warning float to double on atof()
...
- this is horribly inefficient so better to change the parsing
2016-02-29 10:26:31 -08:00
Tom Pittenger
068374658c
AP_Mission: utilize radius for loiter commands
2016-02-29 06:43:19 -08:00
Will Sackfield
8b5fa9d23d
SITL: Initialise yaw_rate and pitch_rate
...
* Clang requires these variables to be initialized
2016-02-29 14:14:37 +11:00
Will Sackfield
6f43b7121c
DataFlash: Cast msg to uint8
...
* Clang requires this explicit cast
2016-02-29 14:14:37 +11:00
Will Sackfield
723e166c13
AP RPM: Initialise backend with _instance
...
* Unsure how this worked in the past
2016-02-29 14:14:37 +11:00
Will Sackfield
0a60d713af
AP HAL SITL: Use fully qualified SITL namespace
...
* using namespace SITL caused ambiguities due to
both SITL and HAL SITL using the same namespace
2016-02-29 14:14:37 +11:00
Will Sackfield
8c98eb2b84
APMControl: Cast type to uint8
...
* Clang requires that the type be explicitly cast
to uint8
2016-02-29 14:14:37 +11:00
Staroselskii Georgii
5b3627f83e
AP_Notify: made DiscreteRGBLed more generic
...
- made pins and polarity configurable
- got rid of all Navio specific code
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
ef4e3aa333
AP_Notify: renamed Navio2Led to DiscreteRGBLed
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
0bd7839b9f
AP_Notify: made Navio2LED a little easier to configure
...
- got rid of a lot of not needed defines
- allocated channels on init instead of accessing them every time
through the HAL reference
- simpliefied hw_set_rgb()
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
da550e5e98
AP_Inertial_Sensor: do not rotate MPU9250 on Navio2
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
f93e790717
AP_HAL_Linux: make Ublox work on the higher frequency
...
The lower speed was only valid for very old Navio's. All new boards ship
with the GPSs that support higher frequencies.
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
a327a8779e
AP_HAL_Linux: added Navio2 support
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
7187f26220
AP_HAL_Linux: use Raspberry Pi GPIO for Navio2
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
6680baf777
AP_HAL_Linux: use MPU9250 for Navio2
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
c9869e768a
AP_HAL_Linux: use Util_RPI for Navio2
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
23a2cf45aa
AP_HAL_Linux: added RCInput for Navio2
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
2ea69571ef
AP_Notify: disabled boardled for Navio
2016-02-27 03:06:50 -03:00
Staroselskii Georgii
3223802431
AP_Notify: enabled leds for Navio2
2016-02-27 03:06:50 -03:00
Alexey Bulatov
fc6351b929
AP_Notify: added Navio2LED driver
2016-02-27 03:06:50 -03:00