Commit Graph

16902 Commits

Author SHA1 Message Date
Peter Barker
92927cd848 GCS_MAVLink: move try_send_message of servo-output-raw up 2018-05-21 19:08:08 +01:00
Andrew Tridgell
95df35f102 HAL_PX4: fixed build warnings 2018-05-21 15:02:34 +10:00
Andrew Tridgell
049e3ae02d HAL_SITL: take account of available bytes in receive_time_constraint_us 2018-05-21 14:53:18 +10:00
Andrew Tridgell
36ebb14b2e HAL_PX4: take account of available bytes in receive_time_constraint_us 2018-05-21 14:53:18 +10:00
Andrew Tridgell
b396b2a2e0 HAL_Linux: take account of available bytes in receive_time_constraint_us 2018-05-21 14:53:18 +10:00
Andrew Tridgell
f983c8a906 HAL_F4Light: take account of available bytes in receive_time_constraint_us 2018-05-21 14:53:18 +10:00
Andrew Tridgell
89898bae1d HAL_ChibiOS: take account of available bytes in receive_time_constraint_us 2018-05-21 14:53:18 +10:00
Andrew Tridgell
b887a1e893 AP_HAL: make receive_time_constraint_us non-const
needed to use available()
2018-05-21 14:53:18 +10:00
Andrew Tridgell
dcd7799ec9 HAL_ChibiOS: fixed DShot output on fixed wing
we need to mark the channels as 'fast' for DShot to enable properly
2018-05-21 13:31:00 +10:00
Andrew Tridgell
4e414c02f5 AP_Motors: use scaled actuators for single and coax frames
this allows for multiple servos with the same motor function
2018-05-21 13:04:13 +10:00
Andrew Tridgell
216bab4de4 AP_Motors: fixed default motor functions for single and coax copter
should be enabling motors 5 and 6 to match docs and SITL
2018-05-21 13:04:13 +10:00
Randy Mackay
f6c06496e2 AR_AttitudeControl: fix accel limiting 2018-05-21 10:28:56 +09:00
Ammarf
a9ee949c32 AR_AttitudeControl: limit desired steering rate 2018-05-21 09:48:43 +09:00
Andrew Tridgell
8571e59d85 HAL_ChibiOS: fixed SBUS inversion for KakuteF4 2018-05-20 15:50:44 +10:00
Peter Barker
0ca888d52a GCS_MAVLink: move sending of POSITION_TARGET_GLOBAL_INT up 2018-05-18 20:26:37 +10:00
Peter Barker
2c962afe98 AC_WPNav: add get_wp_destination to get a Location_Class for the wp 2018-05-18 20:26:37 +10:00
Peter Barker
da40ebaf70 GCS_MAVLink: use relative altitide from ahrs.get_relative_position_D_home()
This will return a barometer height if the EKF is not available.
2018-05-17 15:48:06 +01:00
Peter Barker
4440f7ec4a GCS_MAVLink: move sending of GLOBAL_POSITION_INT up to GCS_MAVLINK 2018-05-17 15:48:06 +01:00
Peter Barker
217fd73100 GCS_MAVLink: remove arguments to send_home and send_ekf_origin 2018-05-17 20:42:36 +10:00
Peter Barker
514bc5c21d GCS_MAVLink: move send_attitude up to GCS_MAVLINK 2018-05-17 18:28:43 +10:00
Peter Barker
11e00f34b2 AP_TemperatureSensor: remove pointless constructor
If you ever allocate on of these on the stack you're doing something
wrong
2018-05-17 15:37:14 +10:00
Peter Barker
7dd023744f AP_TemperatureSensor: allow testing of temperature sending in SITL 2018-05-17 15:37:14 +10:00
Peter Barker
695c52be05 GCS_MAVLink: allow sub to override sending of scaled_pressure3 2018-05-17 15:37:14 +10:00
Peter Barker
c887a5c188 GCS_MAVLink: move try_send_message sending of scaled_pressure up 2018-05-17 15:37:14 +10:00
Peter Barker
8cb2b5809f GCS_MAVLink: move try_send_message sending of sensor offsets up 2018-05-17 15:37:14 +10:00
Peter Barker
b51ec1d346 GCS_MAVLink: move try_send_message of RAW_IMU up to GCS_MAVLINK 2018-05-17 15:37:14 +10:00
Peter Barker
a3a1967e05 AP_Compass: add AP::compass() singleton getter 2018-05-17 15:37:14 +10:00
Peter Barker
fc1775df75 GCS_MAVLink: handle setting of ekf origin in GCS_MAVLink 2018-05-17 10:13:42 +10:00
Peter Barker
9793703a76 AP_AHRS: move Log_Write_Home_And_Origin into AP_AHRS 2018-05-17 10:13:42 +10:00
Michael du Breuil
f6624cc8b2 AP_Airspeed: Use named float wrapper 2018-05-17 00:59:45 +01:00
Michael du Breuil
1b05a18b84 GCS_MAVLink: Wrap sending named float values 2018-05-17 00:59:45 +01:00
Francisco Ferreira
221ba177c5 DataFlash: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
8b32960d3e AP_InertialSensor: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
6f210131ed AP_HAL_QURT: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
5e821428a1 AP_HAL_Linux: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
695d92ddbf AP_HAL: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
5fc7da0e83 AP_GPS: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
0a3af28d17 AP_Compass: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
f8756fac6b AP_Common: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Francisco Ferreira
de73ab6472 AP_Baro: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
Michael du Breuil
805e9519d1 GCS_MAVLink: Send rangefinder data 2018-05-16 23:21:41 +01:00
Michael du Breuil
f8b10aaa53 AP_Proximity: Make singleton and add an interface to check what type is loaded 2018-05-16 23:21:41 +01:00
Michael du Breuil
7d6c3ec683 AP_RangeFinder: Make singleton 2018-05-16 23:21:41 +01:00
Michael du Breuil
9e551350a4 AP_RangeFinder: Remove unneeded state member 2018-05-16 23:21:41 +01:00
Michael du Breuil
03fc653e62 GCS_MAVLink: Don't rely on instance data from rangefinders 2018-05-16 23:21:41 +01:00
night-ghost
0be12dd471 AP_HAL_F4Light: support for UART timestamp API 2018-05-16 16:14:19 +01:00
night-ghost
7f6b994bc1 AP_HAL_F4Light: fixed OSD compilation 2018-05-16 16:14:14 +01:00
night-ghost
d28bac2b89 AP_HAL_F4Light: new board: OmnibusV3 2018-05-16 16:14:14 +01:00
night-ghost
3830cebddc AP_HAL_F4Light: board AirbotV2: fixed build scripts 2018-05-16 16:13:27 +01:00
Michael du Breuil
53c66106d6 AP_GPS: Remove unneeded intilizers
saves 160 bytes on make px4-v2
2018-05-16 20:34:00 +10:00
Andrew Tridgell
0966e14ca5 DataFlash: fixed F4Light build with g++ 6.3.1
fixes conflict with select in compiler headers
2018-05-16 20:24:23 +10:00
night-ghost
b95bc6595c HAL_F4Light: changes in I2C driver for Matekf405-CTR board 2018-05-16 18:55:29 +10:00
night-ghost
27b4fd5b50 HAL_F4Light: changed Readme for MatekF405-CTR board 2018-05-16 18:55:29 +10:00
night-ghost
37b16714cb HAL_F4Light: preliminary support for MatekF405-wing board 2018-05-16 18:55:29 +10:00
night-ghost
f6ea053f19 HAL_F4Light: fixed RSSI issue on OSD 2018-05-16 18:55:29 +10:00
night-ghost
0b3514c519 AP_Baro: add support for BMP280 on alternate address 2018-05-16 18:55:29 +10:00
night-ghost
a948c281f6 HAL_F4Light: add support for external baro for Matek_F405 board 2018-05-16 18:55:29 +10:00
night-ghost
b2a4b76496 HAL_F4Light: add battery monitor defaults 2018-05-16 18:55:29 +10:00
night-ghost
ecafe263a6 HAL_F4Light: abort logging in case of filesystem errors 2018-05-16 18:55:29 +10:00
Andrew Tridgell
4e452c77f8 HAL_SITL: implement UART timestamp API 2018-05-16 18:49:22 +10:00
Andrew Tridgell
b8eeac41c8 HAL_Linux: implement uart timestamp API 2018-05-16 18:49:22 +10:00
Andrew Tridgell
f4f62ececa GCS_MAVLink: take account of transport lag in vision timestamps 2018-05-16 18:49:22 +10:00
Andrew Tridgell
93cdb15aca HAL_PX4: implement uart timestamp API 2018-05-16 18:49:22 +10:00
Andrew Tridgell
7005383f82 HAL_ChibiOS: implement uart receive timestamp API 2018-05-16 18:49:22 +10:00
Andrew Tridgell
f7a239d833 AP_HAL: added function for last receive timestamp on uarts
this is used for mavlink vision time estimates
2018-05-16 18:49:22 +10:00
Andrew Tridgell
1383e08273 AP_UAVCAN: change default ESC and servo bitmasks to 0
this is to address https://github.com/ArduPilot/ardupilot/issues/8166
2018-05-16 13:59:59 +10:00
bnsgeyer
b20ebc6540 AP_Motors: Tradheli- removes unnecessary code from swash servo trim bug fix 2018-05-16 09:22:44 +10:00
Andrew Tridgell
0078a68fbb SITL: fixed segv when running examples under SITL 2018-05-15 13:36:41 +10:00
Andrew Tridgell
4ba5a368ff SITL: adjust vicon simulated lag approach 2018-05-15 10:42:52 +09:00
Andrew Tridgell
ab9ef01889 GCS_MAVLink: added function for correcting offboard timestamps 2018-05-15 10:42:52 +09:00
Randy Mackay
436f514142 AP_Proximity: resolve compiler warning and format fix 2018-05-15 10:16:30 +09:00
Peter Barker
2d4d99e836 AP_Scheduler: remove unused log_dropped variable 2018-05-15 08:35:05 +09:00
mirkix
cb50639e27 AP_HAL_ChibiOS: add STM32F7 UART support 2018-05-15 07:23:56 +10:00
murata
494735db2e AC_WPNav: Change the variable name according to the unit. 2018-05-14 16:38:47 +09:00
Michael du Breuil
636782375e AP_Proximity: Revert an excessive scan introduced in #8375
Also removes 2 unneeded initilizers, and removes an unneeded runtime
check
2018-05-14 10:53:21 +09:00
Peter Barker
c92554001f SITL: send buffer rather than mavlink msg on channel 2018-05-14 11:46:43 +10:00
Michael du Breuil
7e4972a061 DataFlash: Fix a false reporting of dead IO thread when millis() wraps 2018-05-14 10:11:32 +09:00
Michael du Breuil
703c7fb4b7 DataFlash: Remove unneeded inits and newlines 2018-05-14 10:10:38 +09:00
Alexander Malishev
7eb08bbd40 HAL_ChibiOS: Fix inverter on Omnibus F4 V3 2018-05-14 06:06:40 +10:00
Michael du Breuil
00c512c7e2 AP_Proximity: Small fixups to the rangefinder backend 2018-05-12 09:24:04 +09:00
Michael du Breuil
81e453dee3 AP_Arming: Restrict GPS/AHRS difference to a 2D solution 2018-05-12 09:11:05 +09:00
Andrew Tridgell
794ebe32e3 HAL_ChibiOS: fixed mixture of oneshot and normal PWM on IOMCU 2018-05-12 07:28:05 +10:00
Andrew Tridgell
219d429929 HAL_PX4: fixed oneshot125 on non-alt outputs 2018-05-12 07:28:05 +10:00
mirkix
00d4b5165d AP_BattMonitor: fix pin order for PocketPilot 2018-05-12 07:17:44 +10:00
mirkix
85fe07f1f0 AP_Compass: enable probe HMC5843 for PocketPilot 2018-05-12 07:16:50 +10:00
mirkix
76802740cb AP_HAL: fix PocketPilot HMC5843 I2C bus number 2018-05-12 07:16:50 +10:00
Peter Barker
75c8644fb5 AP_HAL_F4Light: call delay callback on scheduler instance
Also correct name of superclass method
2018-05-12 07:16:06 +10:00
Peter Barker
939aec090e AP_HAL: allow F4Light to call delay callback 2018-05-12 07:16:06 +10:00
Michael du Breuil
9f10cd7195 AP_HAL_VRBrain: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
97696281ae AP_HAL_SITL: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
299543bd35 AP_HAL_QURT: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
f9d1574f73 AP_HAL_PX4: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
517e20093e AP_HAL_Linux: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
d54ef79798 AP_HAL_F4Light: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
b192c1c094 AP_HAL_Empty: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
72a4846f40 AP_HAL_ChibiOS: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
62f153c1b7 AP_HAL: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Michael du Breuil
c8a93f9b76 RC_Channel: Remove set_overrides() method 2018-05-11 12:13:39 +01:00
Patrick José Pereira
04a4001e02 DataFlash: Remove unused variable
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:47:11 +10:00
Patrick José Pereira
c755d341f4 AP_RCProtocol: Remove unused variable
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:47:11 +10:00
Patrick José Pereira
f22f053c83 AP_Baro: Use C_TO_KELVIN
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:46:19 +10:00
Patrick José Pereira
cc590ee587 AP_Baro: Add BARO_TYPE_WATER model to SITL when running for ArduSub
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-10 16:05:58 -04:00
Patrick José Pereira
c7f832e81f AP_Baro: Add SimpleUnderWaterAtmosphere function
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-10 16:05:58 -04:00
mirkix
178b5e03c0 AP_Notify: move BUZZER_PIN into AP_HAL 2018-05-10 17:48:25 +01:00
mirkix
34c96c80ff AP_HAL_ChibiOS: rename BUZZER_PIN into HAL_BUZZER_PIN 2018-05-10 17:48:25 +01:00
mirkix
dfd2fb1841 AP_HAL: move BUZZER_PIN into AP_HAL 2018-05-10 17:48:25 +01:00
Randy Mackay
56672c1c28 AR_AttitudeControl: fix get_steering_out_rate use of max turn rate and acceleration 2018-05-10 20:37:28 +09:00
Randy Mackay
9feaf9cfdd AR_AttitudeControl: const some internal variables
non-functional change
2018-05-10 20:37:28 +09:00
Andrew Tridgell
f8464577ac Revert "SITL: Instance number change MavID"
This reverts commit 507f4d688b.

This broke normal usage of sim_vehicle.py
2018-05-10 09:56:38 +10:00
Randy Mackay
e04de34014 GCS_MAVLink: add local time to VISP message
Adding both local and remote time is useful for providing support for this message because misaligned clocks lead to our EKF discarding the message
2018-05-10 08:29:30 +09:00
mirkix
95fbc222d5 AP_HAL_Linux: enable GPIOs for PocketPilot 2018-05-09 16:16:42 -07:00
mirkix
8c36635a8c AP_HAL: LED GPIOs for final PocketPilot design 2018-05-09 16:16:42 -07:00
Randy Mackay
fa76a7c904 AR_AttitudeControl: get-steering-out-lat-accel uses negative speeds 2018-05-10 08:02:13 +09:00
Randy Mackay
5563691bd1 AR_AttitudeControl: assume positive steering output rotates vehicle clockwise
also remove steering scaling by speed which has been moved to AR_MotorsUGV
2018-05-10 08:02:13 +09:00
Peter Barker
347ab96bf0 GCS_MAVLink: move sending of battery data up
Also, use singleton to get battery object
2018-05-09 11:40:31 -07:00
Pierre Kancir
507f4d688b SITL: Instance number change MavID 2018-05-09 22:00:42 +10:00
Peter Barker
417e9e9aaf GCS_MAVLink: move data stream send up 2018-05-09 16:15:38 +10:00
Peter Barker
8d7fadfdfc GCS_MAVLink: set _initialised as last thing 2018-05-09 16:15:38 +10:00
Peter Barker
864f41406d AP_HAL_VRBRAIN: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
190bd18769 AP_HAL_SITL: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
31621ee21e AP_HAL_QURT: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
83bb6e4a9a AP_HAL_PX4: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
d5cad015dc AP_HAL_Linux: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
f2d73bb9b0 AP_HAL_F4Light: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
ae56cbc302 AP_HAL_Empty: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
b2a81405ea AP_HAL_ChibiOS: move delay callback handling to base HAL Scheduler class 2018-05-09 16:15:38 +10:00
Peter Barker
0ad53e53eb AP_HAL: move delay callback handling to base HAL Scheduler class
This allows us to move a lot of delay handling from vehicle classes into
HAL Scheduler.

The most notable improvement is that it moves the detection of recursion
into the Scheduler, out of each separate vehicle.
2018-05-09 16:15:38 +10:00
Andrew Tridgell
9fc451a615 AP_Beacon: fixed reference to -debug build directory 2018-05-09 14:17:32 +10:00
Peter Barker
b76fa57108 GCS_MAVLink: move try_send_message handling of RC_CHANNELS_RAW up 2018-05-08 12:33:32 +01:00
Peter Barker
ac2fe5f042 AP_RSSI: add singleton 2018-05-08 12:33:32 +01:00
Michael du Breuil
a47bda0b41 AP_BoardConfig: Fix param doc for BRD_SAFETYOPTION 2018-05-08 17:18:03 +10:00
Michael du Breuil
d819690426 DataFlash: Remove redundant state from MAVLink backend 2018-05-08 11:48:09 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
bce10f48af Dataflash: Correct the DF_MAV_STATS time units 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
5de3382ab4 Dataflash: Replace ppm (pulses per minute) with PWM in the RC channels 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
4fd37d17f0 Dataflash: Fix AHR2.Alt multiplier 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
babef0def1 Dataflash: Fix some battery units and multipliers 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
a9ca471907 Dataflash: correct the multiplier factor of POS *Alt data 2018-05-08 10:38:40 +09:00
Peter Barker
5bf2fb186c DataFlash: parameterise dataflash-over-mavlink cachesize 2018-05-08 09:36:01 +10:00
anbello
5b56887428 Changes to be committed:
modified:   hwdef.dat

Modified as per @sh83 hints
2018-05-08 07:33:19 +10:00
anbello
93f551e56e define for AirbotF4 board (ChibiOS HAL)
modified:   libraries/AP_HAL/AP_HAL_Boards.h
	new file:   libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat
2018-05-08 07:33:19 +10:00
Peter Barker
eecdcacf3e GCS_MAVLink: move sending of heartbeats up to GCS_MAVLINK 2018-05-07 11:30:13 -06:00
Peter Barker
e4b4a746e6 GCS_MAVLink: move try_send_message handling of VIBRATION up
Also, use singleton to get ins
2018-05-07 11:23:28 -06:00
Dr.-Ing. Amilcar do Carmo Lucas
9b9932ca9c AP_GPS: Document septentrio RXERROR flags 2018-05-06 20:32:39 -06:00
Dmitri Ranfft
8fa281fa5b RangeFinder: fixed a crash when VL53L0X was enabled in the software but not connected. 2018-05-07 11:47:39 +10:00
Alexander Malishev
776d5e6ba3 HAL_ChibiOS: Fixed s-bus signal polarity in SoftSigReaderInt.cpp 2018-05-07 11:46:35 +10:00
night-ghost
7601edfb87 HAL_F4Light: fixed boards definitions 2018-05-07 11:45:29 +10:00
night-ghost
4cffbf52d3 AP_COMPASS: fix MAG3110 driver 2018-05-07 11:45:29 +10:00
night-ghost
beecfcbae6 fix I2C on AirbotV2 board 2018-05-07 11:45:29 +10:00
Andrew Tridgell
d4d7d1f734 AP_Math: avoid double maths when not needed 2018-05-07 11:43:23 +10:00
Andrew Tridgell
c4fafa490f AP_Avoidance: fixed use of fabs() 2018-05-07 11:43:23 +10:00
Andrew Tridgell
27442e4a7b AP_Declination: use floorf() 2018-05-07 11:43:23 +10:00
Andrew Tridgell
553abda91c AP_NavEKF3: use single precision ceilf() 2018-05-07 11:43:23 +10:00
Andrew Tridgell
4404c95cc8 HAL_Linux: use ceilf() 2018-05-07 11:43:23 +10:00
Andrew Tridgell
ce5db7b813 AP_Scheduler: fixed use of sqrt() 2018-05-07 11:43:23 +10:00
Andrew Tridgell
a5fe798e7f GCS_MAVLink: we don't need the conversion helpers 2018-05-07 11:43:23 +10:00
Andrew Tridgell
4e1d310959 AP_GPS: fixed use of pow() 2018-05-07 11:43:23 +10:00
Andrew Tridgell
86e85a7089 AP_Baro: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell
14cf54b2f0 AP_FlashStorage: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell
7cff648f8a StorageManager: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell
930d22daf9 AP_SmartRTL: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell
99884c89c9 AP_Scheduler: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell
61c8dfac31 AP_Math: split out double precision location functions
this allows ALLOW_DOUBLE_MATH_FUNCTIONS to be used
2018-05-07 11:43:23 +10:00
Andrew Tridgell
9766c4ed26 AC_AttitudeControl: fixed use of double precision maths 2018-05-07 11:43:23 +10:00
Andrew Tridgell
48e27ab242 AP_Landing: fixed use of double precision maths
and rename log() to Log() to prevent name collision with libm function
2018-05-07 11:43:23 +10:00
Andrew Tridgell
3b8ec3a2a0 AP_Math: allow double precision maths where needed 2018-05-07 11:43:23 +10:00
Andrew Tridgell
53d36c02ae AP_GPS: enable double precision maths where needed 2018-05-07 11:43:23 +10:00
Andrew Tridgell
097632eeb3 AP_HAL: try to prevent use of double maths functions
this will help reduce the number of misuses of double precision maths
functions
2018-05-07 11:43:23 +10:00
Michael du Breuil
88ea7ac5fa AP_GPS: Remove software check from SBF driver 2018-05-06 14:52:04 -06:00
Randy Mackay
ce44326ba8 AR_AttitudeControl: fix get_steering_out_heading while reversing 2018-05-06 16:58:00 +09:00
Peter Barker
efdf03e27d AP_AdvancedFailsafe: remove rcmap member from AP_AdvancedFailsafe 2018-05-05 18:06:31 +09:00
Andrew Tridgell
dcab51801c HAL_ChibiOS: implement boost_end
this fixes problems with main thread priority and SPI bus delays on
fmuv3
2018-05-05 07:45:53 +10:00
Andrew Tridgell
5ae410f7ca AP_AHRS: called boost_end() on AHRS update 2018-05-05 07:45:53 +10:00
Andrew Tridgell
84a4f9dc96 AP_HAL: added boost_end() method to Scheduler API
this allows for a better method of controlling main thread priority
2018-05-05 07:45:53 +10:00
Lucas De Marchi
b1b4b66e65 AP_HAL_Linux: minlure: fix uart path
In some point in past it may have been ttyS2, but right now on kernel
4.16+ the UART is on ttyS5. We could do like is done for I2C and search
on sysfs, but it requires additional changes.
2018-05-04 11:47:04 -07:00
Lucas De Marchi
b54b95de12 AP_HAL: minlure: search for specific I2C controller
The number can change from one kernel version to another and even from
one boot to another. Find the I2C controller on sysfs and stick to that,
like it's done for PCA9685.
2018-05-04 11:47:04 -07:00
Lucas De Marchi
320db1d79b AP_HAL_Linux: remove unused i2c devpaths 2018-05-04 11:47:04 -07:00
Lucas De Marchi
2000e17646 AP_HAL: move get_device() method from AP_HAL_Linux
This way it's possible to use the method in platform-independent code
without a need to up cast.
2018-05-04 11:47:04 -07:00
Lucas De Marchi
4f2498947b AP_HAL_Linux: remove redundant ifdef
CONFIG_HAL_BOARD_SUBTYPE should be set in the boards header.
2018-05-04 11:42:55 -07:00
Lucas De Marchi
904888fba7 DataFlash: Linux boards never use /fs 2018-05-04 11:42:55 -07:00
mirkix
0c353d2af0 AP_HAL_Linux: change PocketPilot to final baro sensor 2018-05-04 08:00:49 +10:00
mirkix
ee86418587 AP_HAL: change PocketPilot to final baro sensor 2018-05-04 08:00:49 +10:00
mirkix
598ae5c3f7 AP_HAL_Linux: PocketPilot: change pru to final design 2018-05-04 08:00:49 +10:00
Francisco Ferreira
483048398e
AP_Relay: document BB Blue pin options 2018-05-03 15:35:28 +01:00
Andrew Tridgell
5854ccbb4c HAL_ChibiOS: removed stray debug code
thanks to @alielectric for noticing
2018-05-03 17:04:14 +10:00
Eugene Shamaev
5d4579a086 AP_HAL_SITL: add wind type parameters 2018-05-02 07:32:25 -07:00
Eugene Shamaev
d086edc762 SITL: add wind type parameters 2018-05-02 07:32:25 -07:00
Peter Barker
83b918f1c3 AP_Param: make send_parameter_value_all a GCS method rather than static 2018-05-01 09:39:01 +10:00
Peter Barker
bf124e9333 GCS_MAVLink: make send_parameter_value_all a GCS method rather than static 2018-05-01 09:39:01 +10:00
Peter Barker
1a640e3405 AP_InertialSensor: parameterise sensor-rate logging, generalise it
AP_InertialSensor: add parameters for push-to-log interval and count

AP_InertialSensor: rename BAT_RAW to BAT_OPT

This becomes a bitmask of options for the BatchSampler

AP_InertialSensor: rename 'fast sample' to 'sensorrate sample'

AP_InertialSensor: const sensor-rate filter method

AP_InertialSampler: remove hard-coding of sample rate multiplier

AP_InertialSensor: use parameter to enable/disable sensor-rate logging

AP_InertialSensor: use a parameter to control sensor-rate logging

AP_InertialSensor: allow backends to override sensor data multiplier

e.g. some accelerometers are sensitive over wider ranges than the default 16G

AP_Inertialsensor: correct sample rate multiplier
2018-05-01 09:35:29 +10:00
Andrew Tridgell
44131202cd AP_InertialSensor: 4kHz batch sampling 2018-05-01 09:35:29 +10:00
Andrew Tridgell
4869dd0ae4 AP_NavEKF3: send airspeed variance over mavlink 2018-04-30 15:41:32 +10:00
Andrew Tridgell
fb0deba3aa AP_NavEKF2: send airspeed variance over mavlink 2018-04-30 15:41:31 +10:00
Andrew Tridgell
0b03562cf2 AP_AHRS: fix for mavlink update 2018-04-30 15:39:43 +10:00
Peter Barker
767f81265b Sub: correct compilation under clang++ on MacOSX 2018-04-30 13:04:03 +09:00
Andrew Tridgell
2684f46641 HAL_ChibiOS: fixed IMU orientation for revo-mini 2018-04-30 08:33:39 +10:00
night-ghost
c51dda45e7 HAL_F4light: fix compilation errors 2018-04-30 08:32:58 +10:00
night-ghost
1cfdfe55a1 DataFlash: fix HAL_F4light compilation errors 2018-04-30 08:32:58 +10:00
night-ghost
a05c79f1d8 Compass: fix HAL_F4light compilation errors 2018-04-30 08:32:58 +10:00
night-ghost
eb0343649b Baro: fix HAL_F4light compilation errors 2018-04-30 08:32:58 +10:00
Jacob Walser
e5bd6e289e AP_Motors: Add current limiting to 6DOF motors for Sub 2018-04-29 17:16:34 -04:00
mirkix
c2eee2db23 AP_HAL_ChibiOS: add STM32F7 I2C support 2018-04-29 07:59:52 +10:00
Alexander Malishev
1fd52c4e01 HAL_ChibiOS: added input capture filter 2018-04-28 07:31:58 +10:00
night-ghost
a2cc54fb5d HAL_F4Light fixes: removed unused code, removed debugging printf(), removed hard-coded pins 2018-04-27 22:14:59 +10:00
night-ghost
e5c3fd43ee upgrade FatFS to most recent version 2018-04-27 22:14:59 +10:00
night-ghost
ccd90e19a1 fixed DataFlash_File_sd.cpp in case of SD error 2018-04-27 22:14:59 +10:00
night-ghost
051c8e9fe2 kill task in case of exception in armed state 2018-04-27 16:33:30 +10:00
Chris Gaddis
35dddbd35a AP_Relay: Enables relays 1-4 for Beaglebone Blue
Enables relays 1-4 on Beaglebone Blue GP0 connector pins 3-6
2018-04-27 00:13:33 +01:00
Francisco Ferreira
930981914a
AP_Mission: fix small bug in d5a4c6b 2018-04-26 23:21:29 +01:00
Michael du Breuil
d5a4c6b5bc AP_Mission: Sanity check for NaN's and infinities 2018-04-26 14:48:14 -07:00
Randy Mackay
0f9b679e98 AR_AttitudeControl: increase angle err P and reduce steering accel max defaults 2018-04-26 14:16:22 +09:00
Michael du Breuil
1d60b0ec62 AC_PID: Support new RC_Channels::read_input() 2018-04-26 08:00:09 +10:00
Michael du Breuil
30554d0de0 RC_Channels: Collapse has_new_input() with set_pwm_all() 2018-04-26 08:00:09 +10:00
Alexander Malishev
0d6043e0c6 HAL_ChibiOS: Fixed current and voltage sense on OmnibusF4PRO 2018-04-26 07:57:06 +10:00
night-ghost
9f1e45509a support for Matek F405-CTR board, causes minor changes in I2C descriptor block 2018-04-26 07:51:06 +10:00
Andrew Tridgell
f75dea34e1 HAL_ChibiOS: fixed integer promotion bug in SoftSigReaderInt
this caused corrupted PPM values. Many thanks to Andrea Belloni for reporting
2018-04-25 22:25:26 +10:00
Jacob Walser
6ae1bf4cf4 AC_AttitudeControl: Allow zero gains for Sub
Close bluerobotics/ardusub#70
2018-04-25 17:18:26 +09:00
Michael du Breuil
b1a3e0a537 AP_GPS: Report when SBF errors change 2018-04-24 12:32:35 -07:00
Jacob Walser
44d0f7b2a1 AP_Compass: update ORIENT @Values 2018-04-24 13:04:37 +01:00
Jacob Walser
74be9f0bda AP_AHRS: Add support for custom board orientations 2018-04-24 13:04:37 +01:00
Jacob Walser
ad4e928e7d AP_InertialSensor: add support for custom board orientations 2018-04-24 13:04:37 +01:00
Jacob Walser
6699c59ad3 AP_Compass: add support for custom board orientations 2018-04-24 13:04:37 +01:00
Jacob Walser
f97ac4af30 AP_Math: add custom rotation option 2018-04-24 13:04:37 +01:00
Jacob Walser
4f02f709a2 AP_Math: fix typo 2018-04-24 13:04:37 +01:00
Jacob Walser
b820da5c6f AP_AHRS: update AHRS_ORIENTATION metadata 2018-04-24 13:04:37 +01:00
Jacob Walser
e738f33770 AP_Math: Add ROTATION_PITCH_315 and ROTATION_ROLL_90_PITCH_315 2018-04-24 13:04:37 +01:00
Randy Mackay
3f1f68b130 AR_AttitudeControl: support vectored thrust
steering output is not scaled for speed
steering integrator does not build up at low speed
2018-04-24 19:57:19 +09:00
Randy Mackay
9c2da896b9 AR_AttitudeControl: get_throttle_out_stop only stops once desired speed reaches zero
this reduces the final jerk to a when transitioning from forward to reverse and in cases where ATC_ACCEL_MAX is small
2018-04-24 12:24:53 +09:00
Randy Mackay
365e1030db AR_AttitudeControl: separate speed limiting to new method
This allows the desired speed limiting (by acceleration) to be done before the speed-to-throttle PID controller is run.
This is required so the avoidance calls (which work on the desired speed) can be run after limiting but before the PID controllers
2018-04-24 12:24:53 +09:00
Andrew Tridgell
da5df5ca20 AP_Devo_Telem: fixed to check for have_position 2018-04-24 10:44:28 +10:00
Andrew Tridgell
33a26ac0a8 AP_HAL: enable DEVO telemetry on F4Light 2018-04-24 10:44:28 +10:00
night-ghost
09b5cc382b AP_SerialManager: devo telemetry support (RX705/707) 2018-04-24 10:44:28 +10:00
night-ghost
85c71273cf AP_Devo_Telem: devo telemetry support (RX705/707) 2018-04-24 10:44:28 +10:00
bnsgeyer
c8488e3333 AP_Motors: Tradheli - swashplate servo trim fix for heli single and dual frames 2018-04-24 10:30:26 +10:00
Michael du Breuil
7830dab0a8 AP_Arming: Add a servo check that (<= min trim max) for all channels 2018-04-24 01:16:26 +01:00
Michael du Breuil
1b18a78d1d AP_Arming: Add a RC check that (<= min trim max) for all channels 2018-04-24 01:16:26 +01:00
Andrew Tridgell
bba8d506d6 HAL_ChibiOS: port for kakutef4 flight board 2018-04-24 08:03:46 +10:00
Andrew Tridgell
95108a2d2c HAL_ChibiOS: added support for 16 bit timers 2018-04-24 08:03:46 +10:00
Alexander Malishev
03d88b01be HAL_ChibiOS: added support for interrupt based rcin parsing 2018-04-24 08:03:46 +10:00
Andrew Tridgell
6e0b5c204a AP_Notify: support buzzer backend on ChibiOS 2018-04-24 08:03:46 +10:00
Andrew Tridgell
ca9d1a55fe AP_InertialSensor: support ICM-20689 IMU
like the 20789, but without the baro
2018-04-24 08:03:46 +10:00
murata
3577def8fd AC_Avoid: use elseif because value does not change 2018-04-23 19:45:50 +09:00
murata
29b1a6ed41 AC_Avoid: fix comment 2018-04-23 19:45:37 +09:00
malcolm churn
7718196838 HAL_ChibiOS: Fix sparky2 target.
Correct pin mappings, ADC, PWM.

Not working
Flash memory, Logging, external i2c tested with NXP MAG3110.
2018-04-22 21:01:14 +10:00
Andrew Tridgell
e2fa38968f AP_BoardConfig: fixed build for some boards
for boards that don't have board detection but do have a safety switch
this fixes the build
2018-04-21 08:45:34 +10:00
Randy Mackay
23ed735304 AR_AttitudeControl: reduce default steering I gain to 0.2
Also reduce default filter from 50hz to 10hz
2018-04-19 16:29:12 +09:00
Randy Mackay
e5c0b1814a GCS_MAVLink: remove underscore from method names 2018-04-19 13:38:22 +09:00
Vince Kurtz
2f81747112 GCS_MAVLink: fix VISP logging
log VISP messages for the ATT_POS_MOCAP mavlink message as well
2018-04-19 13:34:49 +09:00
Peter Barker
9480572075 AP_Notify: ChibiOS: beep on mode change 2018-04-19 09:29:41 +10:00
Peter Barker
557f8cee43 AP_HAL_ChibiOS: add mode-change-beeps 2018-04-19 09:29:41 +10:00
mirkix
79f3fd532b AP_HAL_ChibiOS: fix spi clock calculation 2018-04-19 08:32:31 +10:00
Peter Barker
e7b5978d8d SITL: use a 16-bit mask for GPIO out 2018-04-18 20:31:55 +09:00
Peter Barker
1eecf07e68 AP_HAL_SITL: use a 16-bit mask for GPIO out
This allows Relay pins to be represented (typically pin 13)
2018-04-18 20:31:55 +09:00
Peter Barker
682679c68d GCS_MAVLink: use AP_ServoRelayEvents singleton 2018-04-18 20:31:55 +09:00
Peter Barker
544ac03ca6 AP_ServoRelayEvents: add singleton 2018-04-18 20:31:55 +09:00
ChristopherOlson
9aa685a6d8 AP_Motors:TradHeli - single rotor only - add support for H3-140 swashplates.
Also changes the old definition to H3 for swashplates with fixed control radius and adjustable servo position.
2018-04-18 14:24:59 +09:00
ChristopherOlson
f073c58f68 AP_Motors:TradHeli - add support for reverse collective swashplates 2018-04-18 14:24:59 +09:00
Peter Barker
64a8de42da DataFlash: use singleton for getting hold of gps object 2018-04-18 13:50:55 +09:00
Peter Barker
901ba0034c AP_NavEKF3: do not pass GPS into Log_Write_GPS; it uses singleton 2018-04-18 13:50:55 +09:00
Peter Barker
578facc9ad AP_NavEKF2: do not pass GPS into Log_Write_GPS; it uses singleton 2018-04-18 13:50:55 +09:00
Peter Barker
643e7e039a AP_GPS: log received data
Also log a set of flag values if a driver is deleted
2018-04-18 13:50:55 +09:00
Tom Pittenger
63e42e194f GCS_MAVLink: send correct mission_ack result type
has no effect since the two typedef enums equated to same value
2018-04-18 12:02:43 +09:00
Pierre Kancir
fdfa08c586 AP_AHRS: fix include order due to cyclic include 2018-04-17 17:21:35 +09:00
Pierre Kancir
6fe0597399 AC_PrecLand: replace AP_InertialNav by AHRS 2018-04-17 17:21:35 +09:00
Peter Barker
63792edc5f DataFlash: increase debug in SITL 2018-04-17 17:16:52 +09:00
Andrew Tridgell
bb0cbd15a4 HAL_ChibiOS: implement fmuv4 safety state
and added safety_mask and safety_pwm support for both fmuv3 and fmuv4
2018-04-17 10:14:01 +10:00
Andrew Tridgell
60f79921ac AP_BoardConfig: added get_safety_mask() 2018-04-17 10:14:01 +10:00
Andrew Tridgell
7be1125084 AP_IOMCU: implement safety mask and safety pwm 2018-04-17 10:14:01 +10:00
Patrick José Pereira
a255c47c33 AP_GPS: Do not restart driver if type is defined as MAV
Fix bluerobotics/ardusub#104

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-04-16 17:08:39 -07:00
Andrew Tridgell
214fb096eb AP_IOMCU: added healthy API for use in arming checks 2018-04-17 08:44:44 +10:00
Andrew Tridgell
77c922e6b8 HAL_ChibiOS: make embed.py work with python3 2018-04-17 08:44:44 +10:00
Andrew Tridgell
09e3a3cb78 AP_IOMCU: added IO firmware upload 2018-04-17 08:44:44 +10:00
Andrew Tridgell
a6e05cbf5a AP_Math: added crc32 for IOMCU bootloader protocol 2018-04-17 08:44:44 +10:00
Andrew Tridgell
3749480dd8 HAL_ChibiOS: create ap_romfs_embedded.h
use ROMFS keywork for romfs files
2018-04-17 08:44:44 +10:00
Andrew Tridgell
deae66e645 AP_ROMFS: library for embedding files
this will be used for bootloaders and IO firmware
2018-04-17 08:44:44 +10:00
Alexey Kozin
f87cc4e172 f4by chibios new style dma table build fix 2018-04-16 07:50:34 +10:00
Andrew Tridgell
4871bbf403 HAL_ChibiOS: make soft serial for RC serial more efficient
using system ticks halves the IRQ time
2018-04-16 07:40:55 +10:00
Andrew Tridgell
57c307a74e AP_BoardConfig: fixed default pwm count
for boards without the parameter we should use 16, meaning all channels
available

thanks to sh83 for noticing
2018-04-16 07:40:55 +10:00
mirkix
a9449ccd29 AP_HAL_ChibiOS: add f767-min board support 2018-04-15 07:40:46 +10:00
Michael du Breuil
8374c5a4f3 AP_HAL_ChibiOS: Remove unused priority level 2018-04-15 07:28:20 +10:00
Michael du Breuil
c8fdb90ab5 RC_Channel: Rework set_pwm_no_deadzone() to a recompute function 2018-04-14 14:05:20 +10:00
kozinalexey
2316fee279 HAL_ChibiOS: f4by conf2 fixed ram size, ext compass, pwm count 2018-04-14 11:09:34 +10:00
kozinalexey
444c0bb54c AP_Compass: added ChibiOS external compass config 2018-04-14 11:09:34 +10:00
kozinalexey
db6c6b1677 AP_BoardConfig: allow PWM count setting on all chibios boards 2018-04-14 11:09:34 +10:00
Alexander Malishev
ca33ff04d9 ChibiOS: add support for omnibusf4pro board 2018-04-14 09:25:15 +10:00
Alexander Malishev
79b5719419 ChibiOS: add support for complementry output timer channels 2018-04-14 09:25:15 +10:00
Alexander Malishev
1b7eecdf2f ChibiOS: fixed tables for F405 mcu 2018-04-14 09:25:15 +10:00
Michael du Breuil
0e8a9c2ec4 AP_IOMCU: Encapsulate debug prints in a #ifdef, fix whitespace 2018-04-14 08:23:24 +10:00
Andrew Tridgell
f22964a350 AP_IOMCU: implement BRD_SAFETYOPTION 2018-04-14 06:22:07 +10:00
Andrew Tridgell
7ecdabe52c HAL_PX4: fixup 2018-04-14 06:22:07 +10:00
Andrew Tridgell
fae0e7befa HAL_PX4: implement BRD_SAFETYOPTION 2018-04-14 06:22:07 +10:00
Andrew Tridgell
d8abf647e8 AP_BoardConfig: added BRD_SAFETYOPTION parameter
allow control of safety button behaviour
2018-04-14 06:22:07 +10:00
Andrew Tridgell
cf4ca29dbb DataFlash: added logging of safety state in POWR message 2018-04-14 06:22:07 +10:00
night-ghost
ecf2c51a8b HAL_F4Light: fixed board's defines to be suitable for new compass/baro autodetection 2018-04-13 20:47:50 +10:00
night-ghost
6e0742630d HAL_F4Light: fixed bug on write in USB MassStorage mode 2018-04-13 20:46:18 +10:00
night-ghost
d1f2646394 HAL_F4Light: fixed bug with DataFlash chips more than 128MBit 2018-04-13 20:46:18 +10:00
night-ghost
740e322438 AP_Baro: fix BMP280 scale 2018-04-13 20:45:48 +10:00
Daniel Widmann
27234f78c6 AR_AttitudeControl: Allow using steer rate control for skid steer rovers without GPS 2018-04-13 09:12:03 +09:00
Peter Barker
a5dc87e2af AP_Baro: do dataflash logging as part of update 2018-04-12 19:12:12 +01:00
Peter Barker
7c14a9dd7b AC_Sprayer: use ahrs singleton
Also remove some unneeded initialisations
2018-04-12 14:23:33 +09:00
Jacob Walser
2212532028 AP_Arming: Clarify/bring commonality to RC Channels check description 2018-04-12 14:20:49 +09:00