Commit Graph

37430 Commits

Author SHA1 Message Date
Pierre Kancir 49be270377 AP_Landing: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 25507d4d7b AP_L1_Control: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 4ea10ce5f5 AP_GPS: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir d6277390f4 AP_Beacon: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 78ce60aa95 AP_Avoidance: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 6da820ac7b AP_AHRS: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir e4987f17b9 AC_Fence: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 3f5a6a243c AP_NavEKF2: use get_distance instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 0b50f32c32 AP_Landing: use get_distance instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 6397cb0c0e AP_Arming: use get_distance instead of location_diff 2019-04-08 08:00:52 -07:00
Pierre Kancir 00fa07ef33 AP_Math: move location_diff to Location and rename 2019-04-08 08:00:52 -07:00
Andrew Tridgell 06ed4f032a ChibiOS: fixed clock for TIM12
this fixes the PWM freq for PWM 7 and 8 on PH4-mini
2019-04-08 19:58:39 +10:00
Andrew Tridgell fa63243eb0 AP_InertialSensor: added BMI088 accel config retry 2019-04-08 19:58:12 +10:00
Randy Mackay 928d7c7e71 AP_MotorsHeli: add range checking to ext_gyro_gain 2019-04-08 15:24:00 +09:00
Randy Mackay a5bdd12bfa Copter: replace TUNE_LOW/HIGH params with TUNE_MIN/MAX
change from uint16 to floats to ease setup
also add check that no function assigned to rc6
2019-04-08 15:24:00 +09:00
Peter Barker 83f6bed1dc Tools: autotest: add test for taking off in poshold in heli 2019-04-08 15:31:41 +10:00
Peter Barker 85be2b0c8b Copter: clean up flip state enumerations
... including a redundant definition of the states...
2019-04-08 14:24:19 +09:00
Andrew Tridgell fef42c6219 AP_Baro: fixes for LPS2XH driver
use fractional temperature, and check status register to ensure we
have data available
2019-04-08 12:52:19 +10:00
Andrew Tridgell f998a74adf GCS_MAVLink: don't report SCALED_PRESSURE2 with a non-existant airspeed sensor 2019-04-08 12:52:19 +10:00
Randy Mackay d5df8312ad Tools: LogAnalyzer updated to use FLOW_TYPE 2019-04-08 11:26:59 +09:00
Randy Mackay 2f82af9fdf Tools: SkyViper-F412 defaults to use pixart flow sensor 2019-04-08 11:26:59 +09:00
Randy Mackay 0daed8c793 Tools: update autotest to use FLOW_TYPE 2019-04-08 11:26:59 +09:00
Randy Mackay d2a2caf3a6 OpticalFlow: replace ENABLE with TYPE 2019-04-08 11:26:59 +09:00
Randy Mackay 69626ba855 Copter: rename FXY logging to FHXY
this keeps the log messages appearing directly below the related FHLD when looking in the MP log viewer
2019-04-08 11:26:59 +09:00
Randy Mackay bbd051b246 GCS_MAVLink: send OPTICAL_FLOW messages to optical flow driver 2019-04-08 11:26:59 +09:00
Randy Mackay 97b5c2b031 OpticalFlow: add MAVLink driver 2019-04-08 11:26:59 +09:00
Randy Mackay 5e9aebd678 AP_RangeFinder: BlueRobotics Ping driver 2019-04-08 09:43:41 +09:00
Randy Mackay 65966ac957 AP_RangeFinder: add LidarLitev3HP and PWM to TYPE param desc 2019-04-08 09:43:41 +09:00
Leonard Hall df3e73f161 Copter: spool fixes for acro stabilize and throw 2019-04-08 09:42:21 +09:00
Randy Mackay d626ea66f1 Copter: poshold loses stray set-desired-spool-state
spool state is all handled higher up in the poshold state switch statement
2019-04-08 09:42:21 +09:00
Randy Mackay 29d05dfeac Copter: loiter mode gets roll and pitch from loiter_nav
both wp_nav and loiter_nav's get_roll() and get_pitch() simply get their values from the same underlying position controller
2019-04-08 09:42:21 +09:00
bnsgeyer 94738c3f86 Copter: change make_safe_shut_down to make_safe_spool_down 2019-04-08 09:42:21 +09:00
bnsgeyer f96da56ad6 Copter: Allow safe shutdown before disarming 2019-04-08 09:42:21 +09:00
bnsgeyer 7ff3a49a10 Copter:tradheli-spool logic fix for acro and stabilize 2019-04-08 09:42:21 +09:00
Leonard Hall 593925567b Copter: formatting fixes 2019-04-08 09:42:21 +09:00
Leonard Hall 6e76dff930 AC_AttitudeControl: remove unused set_throttle_out_unstabilized 2019-04-08 09:42:21 +09:00
Leonard Hall 2daa5ffb9e Plane: replace set_throttle_out_unstabilized 2019-04-08 09:42:21 +09:00
Leonard Hall d8d3522cba Sub: replace set_throttle_out_unstabilized 2019-04-08 09:42:21 +09:00
Leonard Hall c4e3c4142e AP_AutoTune: replace set_throttle_out_unstabilized 2019-04-08 09:42:21 +09:00
Randy Mackay a6bfafefb0 Copter: move loiter and wpnav init out of make_safe_shut_down
resolves autotest RTLSpeed test failure
2019-04-08 09:42:21 +09:00
Leonard Hall 38cc5a817f Copter: consolidate mode state decisions
bnsgeyer and rmackay9 contributed to these changes

make_safe_shut_down waits for spool down before disarming
remove use of attitude_control::set_throttle_out_unstabilized to consolidate logic between multicopters and tradhelis
2019-04-08 09:42:21 +09:00
bnsgeyer d949c80d54 Copter: tradheli replaces rotor_runup_complete with spool state 2019-04-08 09:42:21 +09:00
Andrew Tridgell db5776d080 travis: added fmuv2 plane build
this tests HAL_MINIMIZE_FEATURES build
2019-04-08 09:34:15 +10:00
Andrew Tridgell fb061a225a Plane: fixed build with HAL_MINIMIZE_FEATURES enabled
thanks to PompeCukor for noticing
2019-04-08 09:34:15 +10:00
Andrew Tridgell edd793c152 HAL_ChibiOS: fixed fallback to microSD for storage
this is used when FRAM fails on a board with microSD support. The
double init caused the validate() in the FATFS code to fail
2019-04-07 13:37:57 +10:00
Michael du Breuil 27ad9ac3ca AP_GPS: Refactor get_singleton() to return a pointer 2019-04-05 23:09:47 -07:00
Michael du Breuil 35bd143532 Plane: Update GPS before updating current_loc
Fixes 20ms of extra induced lag on the DCM position estimate
2019-04-05 23:08:24 -07:00
Peter Barker ce53ae63ae AP_Math: use /2 in place of *0.5f
MdB says:

dividing by 2 is actually optimal. It's type correct for all usage, and the compiler generates the multiplication if it's float, and sticks with divide for integers

Godbolt indicates on any optimization level (O1-O3, and Os) that the compiler will correctly optimize the / 2 into a float multiplication if using a float, but if using integer types in the template it will stick with the / 2 which is faster then doing the conversions to/from float.
2019-04-05 23:04:17 -07:00
Peter Barker 31daaf9933 GCS_MAVLink: add floating-point-constant designators 2019-04-05 23:04:17 -07:00
Peter Barker 3b33f4ca4d Copter: add floating-point-constant designators 2019-04-05 23:04:17 -07:00