Commit Graph

17449 Commits

Author SHA1 Message Date
Michael du Breuil c5a69d8ec2 AP_Notify: Fix bad loop count on notify LED's 2018-07-23 10:11:29 +09:00
vierfuffzig 1c91bd3588 AP_OSD: added temperature item 2018-07-21 06:32:07 +10:00
Aaron Wang Shi 4f2d9c2c4d AP_HAL_Linux: support PWM input for BH hat 2018-07-20 00:32:55 -07:00
Andrew Tridgell 8a26ca1ddf HAL_ChibiOS: added a DMA reserve heap
this ensures we keep some DMA-capable memory aside for when it is
needed
2018-07-20 15:48:21 +10:00
Andrew Tridgell 1dcac14b1e AP_RCProtocol: cleanup code style
using Tools/CodeStyle/ardupilot-astyle.sh
2018-07-20 15:47:18 +10:00
Siddharth Purohit f9ab7e54d4 HAL_ChibiOS: increase sigread buffer size for protocols with longer length 2018-07-20 15:47:18 +10:00
Siddharth Purohit baff7291ce AP_RCProtocol: add support for srxl and st24 protocol 2018-07-20 15:47:18 +10:00
Siddharth Purohit f99bd32b51 RC_Protocol: add detection of sumd protocol over sigread 2018-07-20 15:47:18 +10:00
Michael du Breuil bff985a9f4 AP_Notify: Configure the PCA9685 every boot 2018-07-20 14:53:23 +10:00
Michael du Breuil 961e16dca9 AP_Notify: Use a bitfield to load LED drivers 2018-07-20 14:53:23 +10:00
Andrew Tridgell 73cfd40e7f HAL_ChibiOS: reduce latency of DMA sharing
if we are sharing a DMA channel between i2c and SPI then this saves
latency on SPI by giving up the DMA channel between retries
2018-07-20 14:51:18 +10:00
Ebin ccb32cf357 APM_Control: BRAKE param default is true 2018-07-20 14:41:32 +10:00
Ebin 1dc1b28234 APM_Control: changed default PID for Balance Bot 2018-07-20 14:41:32 +10:00
Ebin 89ffa94427 SITL: Removed redundant variables and modified/deleted commented lines 2018-07-20 14:41:32 +10:00
Ebin 21445e91be SITL: new balancebot physics simulation 2018-07-20 14:41:32 +10:00
Andrew Tridgell cb19d4dffc AP_HAL: added toneAlarm_set_tune_string 2018-07-20 14:37:16 +10:00
Andrew Tridgell d93964b319 AP_Notify: support playing tunes by string on ChibiOS 2018-07-20 14:37:16 +10:00
Andrew Tridgell 4244daeb2d HAL_ChibiOS: support playing tunes by string 2018-07-20 14:37:16 +10:00
Andrew Tridgell 98f87f5087 SITL: fixed gimbal for tailsitter 2018-07-20 14:21:06 +10:00
Andrew Tridgell 9a6113e5d8 AP_AHRS: fixed tailsitters in RealFlight
we need to use the rotated accel for the earth-frame accel
2018-07-20 14:21:06 +10:00
Andrew Tridgell cbd6f4cc21 AP_Compass: fixed compass for tailsitters in SITL 2018-07-20 14:21:06 +10:00
Randy Mackay 9eebb6225a AR_AttitudeControl: brake fix to set limit in only one direction 2018-07-19 09:04:50 +08:00
Peter Barker fdd111a24d AP_HAL_SITL: move include for pthread.h
We need pthread_t for a member
2018-07-19 10:27:47 +10:00
E Thomas c8ce76e8a6 Added support for PX4V1 UARTD in HAL_PX4_Class 2018-07-19 08:11:18 +10:00
Michael du Breuil 16b6201195 RC_Channel: Allow a RC_OVERRIDE_TIMEOUT of -1 to use the overrides
forever
2018-07-19 07:53:43 +10:00
Jonathan Challinger 65b20bfd83 AP_IOMCU: fix radio failsafe handling 2018-07-19 06:52:09 +10:00
Andrew Tridgell ec97e7772d HAL_ChibiOS: rename f4by-ch to F4BY 2018-07-18 21:24:11 +10:00
Alexander Malishev f265d7e128 AP_Bootloader: add f4by bootloader 2018-07-18 21:10:39 +10:00
Andrew Tridgell 3a8ef21d89 HAL_F4Light: renamed bootloader 2018-07-18 17:49:54 +10:00
Andrew Tridgell 75c5fda222 AP_SerialManager: make console do mavlink2 by default
this is low impact as it doesn't affect radios that may not do mavlink2
2018-07-18 16:21:02 +10:00
Randy Mackay 465564ba99 AP_Follow: fix initialisation of offsets 2018-07-18 15:11:09 +09:00
Randy Mackay 0834e7ae9b AP_Follow: update FOLL log column names
VelN is easier to understand than VelX
Also minor formatting fix
2018-07-18 15:11:09 +09:00
Randy Mackay f53bfdbd38 AP_Follow: fix reporting to GCS 2018-07-18 15:11:09 +09:00
Andrew Tridgell 027beb0dc1 AP_Compass: rename COMPASS_ROT_AUTO to COMPASS_AUTO_ROT
request from Randy
2018-07-18 16:07:19 +10:00
Andrew Tridgell 15d2daabf0 AP_Compass: don't do auto-orientation if using ROTATION_CUSTOM 2018-07-18 16:07:19 +10:00
Andrew Tridgell a73492b40a AP_Compass: fixed newline in statustext 2018-07-18 16:07:19 +10:00
Andrew Tridgell 196ba0e858 AP_Compass: make COMPASS_ROT_AUTO take 3 values
0 for disabled, 1 for check only, 2 for check and fix
2018-07-18 16:07:19 +10:00
Andrew Tridgell d15a4ad92a AP_Compass: improved error reporting, check all compasses
this uses extensions to the MAG_CAL_REPORT message to convey failures
of orientation checking.

It also checks all compasses, external or internal. It only tries to
fix the orientation if it is external
2018-07-18 16:07:19 +10:00
Andrew Tridgell a5749c1869 AP_Compass: allow diagonals and off-diagonals to be calculated on rot change
this re-runs the fit on change in orientation
2018-07-18 16:07:19 +10:00
Andrew Tridgell b4c7d1925e AP_Compass: allow for runtime changes to SIM_MAG_DIA_?
this makes for easier testing
2018-07-18 16:07:19 +10:00
Andrew Tridgell 3c2e8baee2 AP_Compass: improved orientation reporting
and fail magcal if we fail orientation detection for an external
compass
2018-07-18 16:07:19 +10:00
Andrew Tridgell 8b0f40b402 AP_Compass: implement automatic compass orientation
this automatically determines the compass orientation when doing a 3D
compass calibration, if COMPASS_ROT_AUTO is enabled.
2018-07-18 16:07:19 +10:00
Andrew Tridgell 4acc06df87 AP_Compass: support diagonal, off-diagonal and rotation in SITL
compass
2018-07-18 16:07:19 +10:00
Andrew Tridgell 8170fbcf80 AP_Math: added a comment on conventions for to_euler() 2018-07-18 16:07:19 +10:00
Andrew Tridgell d1f67f6ded SITL: added diagonal, off-diagonal and orientation of SITL compass 2018-07-18 16:07:19 +10:00
Andrew Tridgell 1056e64419 AP_AHRS: added get_DCM_rotation_body_to_ned()
this specifically asks for the DCM attitude, which will be used for
the comass calibration to help determine compass orientation
2018-07-18 16:07:19 +10:00
Andrew Tridgell 5b0b9ef962 AP_AHRS: don't do yaw correction in DCM while calibrating compass
this avoids applying bad compass yaw, and helps the compass
calibration code
2018-07-18 16:07:19 +10:00
Andrew Tridgell caa553e727 HAL_ChibiOS: fixed internal i2c mask for Pixracer 2018-07-18 12:04:01 +10:00
Andrew Tridgell 59aab9987e HAL_ChibiOS: account for I2C base in compass masks 2018-07-18 12:04:01 +10:00
Randy Mackay 3d72022f6e EKF: modify ALT_SOURCE param description
We regularly find users changing the ALT_SOURCE to 1 (range finder) when trying to implement terrain following which is not the correct way to do it
2018-07-18 08:31:09 +09:00
Patrick José Pereira 2ba6f64281 SITL: Remove unused variables
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-07-17 20:25:22 +09:00
Michael du Breuil e4a8e9deb1 AP_RCMapper: Mark sub specific parameters as sub only for docs 2018-07-17 12:08:27 +10:00
Michael du Breuil fc44f693e5 AP_Airspeed: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil 65df5c3ff6 AP_AHRS: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil 08ef60d436 AP_ADC: Remove unused AP_ADC class 2018-07-17 09:29:50 +10:00
Michael du Breuil 1e7a06ef6b AP_Mount: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil a5b8279ea4 AP_Motors: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil dddb1e6a58 AP_Module: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil 1efad07a84 AP_InertialSensor: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil 2e135f4fc4 AP_HAL_Linux: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil fcb1c4cdfd AP_GPS: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil 875e03bdd9 AP_BattMonitor: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Michael du Breuil 57f3e9cd88 AP_Airspeed: Remove unused ADC include 2018-07-17 09:29:50 +10:00
bnsgeyer 0f75866042 AP_Motors: Tradheli-corrected get_motor_mask method 2018-07-16 12:41:16 +10:00
bnsgeyer dec8c5de77 AP_Motors: convert heli code to use SRV_Channels
this converts the heli code to use the SRV_Channels output
functions. It does not change behaviour, but removes the last vehicle
type that did its own servo output calculations.  This change also
fixed servo initialization conflicts.

Note that this also allows helis to be setup with more than one
channel for a particular output (eg. two separate channels for tail
servo if they are wanted). This isn't likely to be used much, but does
make heli consistent with other vehicle types
2018-07-16 12:41:16 +10:00
bnsgeyer c3d4b792ad SRV_Channel: fixes channel numbering for channel already assigned message 2018-07-16 12:41:16 +10:00
bnsgeyer 73df3e0af2 SRV_Channel: modified set_output_pwm_trimmed for reverse property
Modified function to account for servo reverse property
2018-07-16 12:41:16 +10:00
Andrew Tridgell e94177e469 SRV_Channel: added function based set_output_min_max
this is for a conversion of AP_Motors heli code to servo functions
2018-07-16 12:41:16 +10:00
Alexander Malishev 4342dae065 HAL_ChibiOS: define BOARD_RSSI_ANA_PIN to simpify tuning 2018-07-16 08:29:49 +10:00
Alexander Malishev e04f438ce3 HAL_ChibiOS: fix analog pins on MatekF405 2018-07-16 08:29:49 +10:00
Alexander Malishev 89f7d652e0 HAL_ChibiOS: removed wrong led pin 2018-07-16 08:29:49 +10:00
Alexander Malishev 13b56d5870 AP_OSD: improve AHI for large roll angles 2018-07-14 18:08:36 +10:00
Andrew Tridgell 3c0ed01fd0 AP_Compass: prevent use of null dev_icm device in ICM20948 driver 2018-07-14 17:51:50 +10:00
Andrew Tridgell ed09467f06 AP_BoardConfig: removed verbose SPI probe debug messages
these are just confusing for users
2018-07-14 17:51:50 +10:00
Andrew Tridgell 71647cfc6b AP_Compass: removed HMC5843 compass probe error 2018-07-14 17:51:50 +10:00
Andrew Tridgell 2a62938fb1 AP_BoardConfig: enable get_board_type() on all boards
return BOARD_TYPE_UNKNOWN for boards that don't use board detection
2018-07-14 17:51:50 +10:00
Andrew Tridgell 9ab55f6838 HAL_ChibiOS: probe for external compasses on several boards
boards that have no internal compass will now probe for all external
compass types
2018-07-14 17:51:50 +10:00
Andrew Tridgell ff6d639ed7 AP_Compass: separated out external compass probing
this allows any ChibiOS board to specify that it wants to probe for
all possible external compass types with a define in hwdef.dat

It also implements duplicate compass detection for all i2c drivers,
ensuring we can't get a load of a driver on the same bus/address twice
2018-07-14 17:51:50 +10:00
Andrew Tridgell 476bddd9a3 HAL_ChibiOS: use HAL_I2C_INTERNAL_MASK 2018-07-14 17:51:50 +10:00
Andrew Tridgell 0fc6ca22f7 AP_HAL: setup HAL_I2C_INTERNAL_MASK for ChibiOS 2018-07-14 17:51:50 +10:00
Andrew Tridgell 63d385ffb1 AP_AHRS: fixed arming with no compass in plane
allow arming if the GPS quality is good, the yaw alignment and
position will fix itself once the vehicle starts moving
2018-07-14 17:49:52 +10:00
Andrew Tridgell ac40a20c02 AP_NavEKF3: fill in gps_quality_good flag 2018-07-14 17:49:52 +10:00
Andrew Tridgell 3d31773fb4 AP_NavEKF2: fill in gps_quality_good flag 2018-07-14 17:49:52 +10:00
Andrew Tridgell 103d1aea41 AP_NavEKF: added gps_quality_good EKF flag 2018-07-14 17:49:52 +10:00
heitiane 2c24bac79e BARO_generic: add Dummy GCS to meet the requirement of AP_Baro::calibrate(). 2018-07-14 10:32:51 +10:00
vierfuffzig 78386ed080 AP_OSD: added OSD_MSG_TIME parameter 2018-07-14 09:07:42 +10:00
Andrew Tridgell 7eabee04a3 HAL_ChibiOS: enable OSD on KakuteF7 2018-07-13 14:53:53 +10:00
Andrew Tridgell b96f24c80e HAL_ChibiOS: added KakuteF7
thanks to Huibean for the fixes!
2018-07-13 14:53:53 +10:00
Andrew Tridgell dc54babe41 SITL: setup more defaults with flightaxis
with copters now you only need to set FRAME_CLASS to fly
2018-07-13 10:19:01 +10:00
Andrew Tridgell 7ec6522b9d AP_Compass: default to right mag offsets for SITL 2018-07-13 10:19:01 +10:00
Andrew Tridgell 2fe2c8fbda AP_Compass: initialise compass IDs saved in SITL
this ensures we don't get uncalibrates compasses in SITL
2018-07-13 10:19:01 +10:00
Andrew Tridgell 5f8b57ba19 AP_InertialSensor: added SITL device IDs 2018-07-13 10:19:01 +10:00
Andrew Tridgell 823c4523b3 AP_Compass: added SITL device IDs 2018-07-13 10:19:01 +10:00
Andrew Tridgell 464dc9102f AP_HAL: added device types for SITL
and fixed a stack init bug for make_bus_id
2018-07-13 10:19:01 +10:00
Andrew Tridgell f2d602690e HAL_ChibiOS: fixed build error with some compilers 2018-07-13 08:50:46 +10:00
Andrew Tridgell 83f38d536e HAL_ChibiOS: fixed flow control auto-detect without DMA
this fixes automatic flow control detection when we are not using DMA
for TX
2018-07-13 07:34:30 +10:00
Andrew Tridgell 0201893f7c HAL_ChibiOS: fixed peripheral power-up on fmuv5
we need to do the powerup before we initialise the UARTs
2018-07-13 07:34:30 +10:00
Andrew Tridgell 409e857f6b HAL_ChibiOS: use pullup on CTS line
this makes life less difficult for SiK radios which go into bootloader
mode on low CTS
2018-07-13 07:34:30 +10:00
Andrew Tridgell 11e09a846c HAL_ChibiOS: setup RTS pins as pullup
this prevents RTS pins from keeping SiK radios in bootloader mode on
peripheral powerup
2018-07-13 07:34:30 +10:00
Andrew Tridgell 63a0a4979c HAL_ChibiOS: delay peripheral power on for fmuv5
this should prevent SiK radios staying in the bootloader
2018-07-13 07:34:30 +10:00