Commit Graph

16166 Commits

Author SHA1 Message Date
Peter Barker
aae4ed2553 AP_AHRS_NavEKF: accept external position estimates into AHRS 2018-03-27 20:28:00 +09:00
Peter Barker
20412dc0db AP_AHRS: accept external position estimates into AHRS 2018-03-27 20:27:59 +09:00
Peter Barker
0d77cfb6c3 SITL: method to return current vehicle location 2018-03-27 20:13:03 +09:00
Peter Barker
c343a286c5 AP_Math: quaternion: add contructor from float[4] 2018-03-27 20:13:03 +09:00
Randy Mackay
b2eeceb82d AP_RSSI: add PH2 ADC to ANA_PIN param values 2018-03-27 14:20:57 +09:00
bnsgeyer
690e8fd3f4 AP_Motors: TradHeli - Changed RSC mode 3 to a spline fit throttle curve 2018-03-27 09:07:03 +11:00
bnsgeyer
600e0dac92 AP_Math: added support for cubic spline interpolation 2018-03-27 09:07:03 +11:00
Peter Barker
ca907a5078 AP_Notify: correct parameter documentation
This is causing parameter parsing to fail at the moment
2018-03-26 10:52:48 +09:00
Peter Barker
96d7eb6bed DataFlash: handle log sending as part of periodic function 2018-03-26 09:22:47 +09:00
Andrew Tridgell
c311599e0a HAL_ChibiOS: make DEFAULT_PARAMETERS relative to source root 2018-03-24 16:12:10 +11:00
ChristopherOlson
c39a802655 SRV_Channel:Servo Library - set allowable min value to 500 pwm uS
Mostly for helicopter and airplane that may be using 760uS centered servos
2018-03-24 09:52:28 +09:00
kozinalexey
5df2b1a3ac chibios hal config for F4BY 2018-03-24 06:39:09 +11:00
Peter Barker
ed5140307a GCS_MAVLink: move handling of visual odometry messages up 2018-03-23 09:28:07 +09:00
Peter Barker
2efd9341cd AP_HAL_ChibiOS: copy the common linker script to outdir, use it from there
The directory we write the linker script to might not have the correct relative path to reference this common.ld script.  So make it reference common.ld in the current directory and copy common.ld to the output directory
2018-03-23 11:06:24 +11:00
Andrew Tridgell
e02f753b01 AP_Notify: removed unused code 2018-03-23 09:36:31 +11:00
night-ghost
64c2e691f8 full system status on 2 LEDs + buzzer pin as parameter 2018-03-23 09:36:31 +11:00
Peter Barker
0a08bba437 GCS_MAVLink: eliminate AP_HAL::Print and AP_HAL::Stream 2018-03-23 08:12:38 +11:00
Peter Barker
6c7c916c78 AP_HAL: eliminate AP_HAL::Print and AP_HAL::Stream
Just *way* too many layers involved here
2018-03-23 08:12:38 +11:00
night-ghost
b54ac274f5 HAL_F4Light: added Revolution_SD board to rebuild script 2018-03-23 07:48:40 +11:00
night-ghost
d3bd5a5fb8 HAL_F4Light: Revolution_SD now works! Pinout in board's 1_read_me.md
also increased reliability of work with SD card on another boards
2018-03-23 07:48:40 +11:00
night-ghost
de9932f6e0 HAL_F4Light: latest fixes 2018-03-23 07:48:40 +11:00
night-ghost
b9dd569edd HAL_F4Light: added support for DataFlash chips large than 128MBit 2018-03-23 07:48:40 +11:00
night-ghost
04dedd77d7 HAL_F4light: fixed 'instant reboot' modes 2018-03-23 07:48:40 +11:00
night-ghost
a3ebb5c069 HAL_F4Light: added support scripts for binaries with bootloader, fixed non-BL versions 2018-03-23 07:48:40 +11:00
Lucas De Marchi
cf3a9cddc8 AP_HAL_Linux: fix build error with flexible array
Apparently this code came in part from libuavcan that defines this
struct Control. They also had the same issue detailed on
https://github.com/UAVCAN/libuavcan/issues/116.

The solution here is much simpler though: stick to the design of cmsg()
even if it's C. As per cmsg(3), use a union together with CMSG_SPACE().
2018-03-22 00:49:58 -07:00
Peter Barker
d5c57d949b AP_Scheduler: eliminate goto update_spare_ticks 2018-03-22 10:01:45 +11:00
Peter Barker
badfde6f18 AP_Scheduler: use continue instead of nested-if (NFC) 2018-03-22 10:01:45 +11:00
Peter Barker
224ea50260 AP_Scheduler: continue in place of nested if (NFC) 2018-03-22 10:01:45 +11:00
Michael du Breuil
6652dd73e4 GCS_MAVLink: Correct sending SCALED_PRESSURE.press_diff
Closes #6642
2018-03-21 13:36:35 +00:00
Michael du Breuil
a46c60f4de AP_Airspeed: Create a singleton 2018-03-21 13:36:35 +00:00
Nathan E
dcf127b73d Compass: clarify compass orientation description
Resolves an error directing users to reference the flight controller (instead of the frame) for COMPASS_ORIENT.
Changed wing to side for all vehicles
2018-03-21 09:01:45 +09:00
Pierre Kancir
ff852de87b AP_TempCalibration: fix FALLTHROUGH 2018-03-21 08:24:56 +09:00
Pierre Kancir
f66c83a59e AP_HAL: fix FALLTHROUGH 2018-03-21 08:24:56 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
1a8a390d4c AP_Beacon: Fix FALLTHROUGH in Marvelmind device driver. 2018-03-19 12:48:29 -07:00
Peter Barker
bed3f0c344 GCS_MAVLink: move handling of get_home_position up 2018-03-19 10:32:37 +09:00
Peter Barker
cc5af90d1a AP_Arming: home state has moved to AP_AHRS 2018-03-19 10:32:37 +09:00
Peter Barker
3a5807ae56 AP_AHRS: move home_status into AP_AHRS
Storing home in the AHRS object but not its state is clearly evil.

Fix that.
2018-03-19 10:32:37 +09:00
Holger Steinhaus
8b8a99e1aa AP_HAL_PX4: fix possible overflow/truncation issue
bus_id is declared to be a 5 bit value, so 2 digits are necessary for
string representation.
2018-03-17 16:32:56 +01:00
Holger Steinhaus
5af02dde59 AP_Proximity: fix possible overflow/truncation issue 2018-03-16 22:37:16 +01:00
Lucas De Marchi
43750d6f77 AP_SmartRTL: use ins singleton 2018-03-16 00:37:35 -07:00
Lucas De Marchi
daa8819619 AP_OpticalFlow: use ins singleton 2018-03-16 00:37:35 -07:00
Lucas De Marchi
8114db3fdc AP_Module: use ins singleton 2018-03-16 00:37:35 -07:00
Lucas De Marchi
25490b6151 AP_Mission: use ins singleton 2018-03-16 00:37:35 -07:00
Lucas De Marchi
517f71c183 AP_AHRS: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
622be10163 AP_TempCalibration: do not take reference to ins 2018-03-16 00:37:35 -07:00
Peter Barker
f0daf392a5 AP_TECS: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
e2de9d62cd APM_Control: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
3190974e4f DataFlash: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
55b8a2288e AP_NavEKF3: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
40957ec430 AP_NavEKF2: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
9f556197a0 AP_Mount: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
f0d06e7a9c AP_Arming: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
1dabcc473d AP_AHRS: use ins singleton 2018-03-16 00:37:35 -07:00
Peter Barker
7cc808543f AC_Precland: use ins singleton 2018-03-16 00:37:35 -07:00
Randy Mackay
d0e6c4d08d AC_WPNav: correct LOIT_MAXA param description 2018-03-16 13:50:57 +09:00
Randy Mackay
33f437a72c AC_AttitudeControl: use multiply instead of divide 2018-03-16 13:50:57 +09:00
Leonard Hall
c53ba22daa AC_AttitudeControl: add new rate only attitude control 2018-03-16 13:50:57 +09:00
Randy Mackay
21abe1194e AC_WPNav: run horizontal position control at main loop rate 2018-03-16 13:50:57 +09:00
Randy Mackay
e9c23b538e AC_Circle: run horizontal position control at main loop rate 2018-03-16 13:50:57 +09:00
Randy Mackay
ac82a37728 AC_PosControl: run horiz control at main loop rate 2018-03-16 13:50:57 +09:00
Randy Mackay
9e0a57eec7 DataFlash: minor formatting fixes
non-functional change
2018-03-16 13:50:57 +09:00
Randy Mackay
13007e2a07 AC_PosControl: dataflash logging of PSC message 2018-03-16 13:50:57 +09:00
Randy Mackay
5be1020578 AC_WPNav: use multiply instead of divide
non-functional change
2018-03-16 13:50:57 +09:00
Randy Mackay
69cfea4057 AC_PosControl: use float for local consts 2018-03-16 13:50:57 +09:00
Randy Mackay
b988a6ca08 AC_AttitudeControl: add units to INPUT_TC param desc 2018-03-16 13:50:57 +09:00
Randy Mackay
92b56c2c89 AC_WPNav: init_loiter_target always resets I term
This was only used by poshold and this has been removed as part of "new-loiter"
2018-03-16 13:50:57 +09:00
Leonard Hall
a356cfa529 AC_Circle: init resets desired velocity_xy 2018-03-16 13:50:57 +09:00
Leonard Hall
d104e3a3c0 AC_Circle: remove xy mode and limit angle to maintain alt 2018-03-16 13:50:57 +09:00
Leonard Hall
1c0678226c AC_WPNav: new loiter including accel ff and braking
Includes:
sanity check loiter accel max vs lean angle max
increase loiter aggressiveness
remove loiter calls to pos_con.freeze_ff_xy
use loiter max velocity correction
remove xy mode from loiter
move predictor to angle
add maximum pilot commanded angle to loiter
loiter use alt hold angle limit
set_pilot_desired_acceleration accept dt

Also includes:
remove loiter jerk and setting pos-con jerk
breaking gain is based on VelxyP
Jerk limit Loiter breaking
change breaking parameters use jerk limit
add maximum distance correction in Loiter to 2m
update Loiter parameter defaults
2018-03-16 13:50:57 +09:00
Leonard Hall
c7c3dd561a AC_WPNav: brake, wp and spline clear desired velocity_xy 2018-03-16 13:50:57 +09:00
Leonard Hall
6430b75224 AC_WPNav: remove xy mode from brake, wp, spline 2018-03-16 13:50:57 +09:00
Leonard Hall
c59dc21c8b AC_WPNav: sanity check wp accel max vs lean angle max 2018-03-16 13:50:57 +09:00
Leonard Hall
dadc6a63c4 AC_PosControl: add set_leash_length_xy 2018-03-16 13:50:57 +09:00
Leonard Hall
e5bc2b26fe AC_PosControl: add lean angle max 2018-03-16 13:50:57 +09:00
Leonard Hall
0f3645b061 AC_PosControl: increase velocity gains 2018-03-16 13:50:57 +09:00
Leonard Hall
7ec043502f AC_PosControl: add accel limit to xy controller 2018-03-16 13:50:57 +09:00
Leonard Hall
bd13704f6f AC_PosControl: update init for guided 2018-03-16 13:50:57 +09:00
Leonard Hall
85b7f06554 AC_PosControl: combine z position control into single method 2018-03-16 13:50:57 +09:00
Leonard Hall
993e638752 AC_PosControl: combine xy position control into single method
Also always limit lean angle to maintain altitude
2018-03-16 13:50:57 +09:00
Leonard Hall
74bb7616a7 AC_PosControl: add accel feedforward
also add limit_vector_length and sqrt_controller helper functions
enforce angle limits
rename accel-feedforward to accel-desired
remove freeze_ff_xy
remove unused VEL_XY_MAX_FROM_POS_ERR
remove xy mode
remove jerk limiting code including setters
limit_vector_length uses is_positive
Also modify formatting
2018-03-16 13:50:57 +09:00
Randy Mackay
9aa6415e1c AC_AttitudeControl: use is_positive and is_negative 2018-03-16 13:50:57 +09:00
Randy Mackay
b3de52dc59 AC_AttitudeControl: minor comment fix 2018-03-16 13:50:57 +09:00
Leonard Hall
05418d3d29 AC_AttitudeControl: add EKF reset handling 2018-03-16 13:50:57 +09:00
Leonard Hall
8c45345863 AC_AttitudeControl: rename use_ff_and_input_shaping to use_sqrt_controller
Also rate controllers only use _rate_bb_ff_enabled flag to decide whether
to use ff for now
2018-03-16 13:50:57 +09:00
Leonard Hall
1e9e12e866 AC_AttitudeControl: rename heading_quad to yaw_vec_correction_quat
also rename flip_scalart local variable to feedforward_scalar
also add comments
non-functional change
2018-03-16 13:50:57 +09:00
Randy Mackay
59a2445ad3 AC_AttitudeControl: replace smoothing gain with INPUT_TC 2018-03-16 13:50:57 +09:00
Leonard Hall
e1e224b68b AC_AttitudeControl: add angular velocity limit 2018-03-16 13:50:57 +09:00
Leonard Hall
ee82943f85 AC_AttitudeControl: add input_shaping_rate_predictor 2018-03-16 13:50:57 +09:00
Leonard Hall
6175a896ee AC_AttitudeControl: add set smoothing gain
Smoothing gain value should be set once when entering a mode
2018-03-16 13:50:57 +09:00
Leonard Hall
213f7a4061 AC_AttitudeControl: add get_accel_roll/pitch/yaw_max_radss methods
Also constify existing get_accel_roll/pitch/yaw_max methods
2018-03-16 13:50:57 +09:00
Michael du Breuil
45410759dc DataFlash: Log the frame a mission command is planned in 2018-03-16 09:28:20 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
54b3936a46 AP_Beacon: Use marvelmind beacon raw distances on the EKF
Add support for Marvelmind RAW distance measurements this
requires Marvelmind FW >= 5.77 and "Raw distances data" enabled
in the marvelmind GUI dashboard.
This is better than the previous workaround we had.
2018-03-16 08:23:52 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
29078824fc AP_Beacon: Replace max_buffered_positions variable with a #define 2018-03-16 08:23:52 +09:00
Randy Mackay
89725a7aa5 AR_AttitudeControl: minor comment fix
non-functional change
2018-03-15 09:58:27 +09:00
Peter Barker
0652c89844 AP_Mount: use dataflash singleton
Closes #7550
2018-03-15 07:57:50 +09:00
Randy Mackay
d139f0e28e AR_AttitudeControl: add get_stopping_distance 2018-03-14 12:40:04 +09:00
ChristopherOlson
96793a3ae7 AP_Motors:TradHeli - DDVP Ramp/Runup
Change to ramp and runup DDVP tail rotor to prevent torque pitching the frame and provide runup in sync with main
rotor like a mechanically driven tail.

Fix some comments and remove indents found in whitespace in AP_MotorsHeli.cpp and AP_MotorsHeli.h
2018-03-14 09:18:07 +09:00
Michael du Breuil
0e6213a4c6 Camera: Track number of completed events
Closes #3903
2018-03-13 00:00:56 +00:00
Peter Barker
1ef3e4ca97 DataFlash: make more dataflash message IDs available
No vehicle uses anything like 64 messages.

Moved all of the EKF messages up as a logical group.
2018-03-12 19:14:09 +09:00
Lucas De Marchi
1dd14a8aed AP_UAVCAN: add can driver getter 2018-03-10 21:07:47 -08:00