Randy Mackay
3bec25da85
AP_Compass: resolve compiler warnings
2018-02-10 08:54:34 +09:00
Andrew Tridgell
55358459c7
AP_AHRS: fixed AP_MODULE_SUPPORTED
2018-02-10 10:50:22 +11:00
Andrew Tridgell
d5be04dc8f
AP_HAL: fixed AP_MODULE_SUPPORTED
2018-02-10 10:50:22 +11:00
Andrew Tridgell
61892036f8
AP_Module: fixed AP_MODULE_SUPPORTED defines
2018-02-10 10:50:22 +11:00
Andrew Tridgell
b5e5b622c7
AP_InertialSensor: use register header for Revo driver
2018-02-10 09:14:41 +11:00
Andrew Tridgell
0e6497aa85
AP_InertialSensor: merged in Revo driver
2018-02-10 09:14:41 +11:00
Andrew Tridgell
ba32b06c59
StorageManager: fixed header order
...
fixes build for revomini HAL
2018-02-10 09:14:41 +11:00
Andrew Tridgell
682dcb65cf
AP_BoardConfig: added param helper for HAL parameters
...
only for HAL_REVOMINI for now
2018-02-10 09:14:41 +11:00
night-ghost
0d8c71de71
DataFlash: added F4Light HAL support
2018-02-10 09:14:41 +11:00
night-ghost
2b213b78ab
AP_Param_Helper: param table support for HAL
...
this allows a HAL to have its own parameter table with parameter names
generated by the build system
2018-02-10 09:14:41 +11:00
night-ghost
f8569ac39e
AP_HAL: added F4Light HAL
2018-02-10 09:14:41 +11:00
Andrew Tridgell
61793c485a
modules: added submodules for HAL_F4Light
2018-02-10 09:14:41 +11:00
night-ghost
04beb45521
HAL_F4Light: new hal for F4 boards, close to bare-metal
2018-02-10 09:14:41 +11:00
night-ghost
739c873991
AP_Frsky_Telem: fixed build warnings
2018-02-10 09:14:41 +11:00
Randy Mackay
2aeda48512
AR_AttitudeControl: minor arg name fix
...
non-functional change
2018-02-09 17:36:21 +09:00
Tom Pittenger
18caed135e
AP_UAVCAN: simply do_cyclic
...
- non-functional change, just returning early instead of deeper and deeper brackets
2018-02-08 16:57:17 -08:00
Tom Pittenger
52589f3c22
AP_UAVCAN: refactor RC Out functions
...
- non-functional change
2018-02-08 16:57:17 -08:00
Andrew Tridgell
10f940c8d0
HAL_ChibiOS: adjust RCIN pin settings for fmuv4
...
thanks to Mark for this change
2018-02-09 10:14:53 +11:00
Andrew Tridgell
9301e4888a
HAL_ChibiOS: make not having bus lock a soft error
...
this is nicer for driver developers
2018-02-09 10:14:49 +11:00
Andrew Tridgell
abd659212e
AP_BoardConfig: fixed device semaphore in board detect
...
thanks to Mark for finding this
2018-02-09 10:14:46 +11:00
Andrew Tridgell
2b86c0e962
HAL_ChibiOS: tweak DMA settings for skyviper-v2450
...
this resolves a problem with the cypress radio.
Thanks to Sid for working this out
2018-02-08 22:15:41 +11:00
Andrew Tridgell
8226530610
HAL_ChibiOS: added DMA_PRIORITY and DMA_NOSHARE options
...
this allows finer grained control of DMA streams
2018-02-08 22:13:00 +11:00
Andrew Tridgell
507fcb0f27
Tools: moved make_abin.sh into Tools/scripts
...
will be used in px4 build
2018-02-08 18:56:51 +11:00
Andrew Tridgell
eb0389caf2
HAL_PX4: used cypress bus defines
2018-02-08 18:56:51 +11:00
Andrew Tridgell
f8e16008f6
AP_HAL: updated cypress radio bus pins for skyviper
2018-02-08 18:56:51 +11:00
Andrew Tridgell
4ce0c2c827
HAL_ChibiOS: simplify skyviper-v2450 config
...
remove unused peripherals
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b90c0d78f3
HAL_ChibiOS: fixed build warning
2018-02-08 17:36:33 +11:00
Andrew Tridgell
64384fa8c9
AP_Radio: allow build of AP_Radio under PX4
2018-02-08 17:36:33 +11:00
Andrew Tridgell
8eff43a352
HAL_ChibiOS: fixed printf arguments
2018-02-08 17:36:33 +11:00
Andrew Tridgell
f928bd9420
AP_Radio: fixed build warnings
2018-02-08 17:36:33 +11:00
Andrew Tridgell
598c2b9eb1
AP_TempCalibration: fixed build warning
2018-02-08 17:36:33 +11:00
Andrew Tridgell
aee6462deb
HAL_ChibiOS: enable I2C clearing on F412 board only
...
may be needed on other boards in the future, but for now we only know
its needed on an I2C 20789, which is rare
2018-02-08 17:36:33 +11:00
Siddharth Purohit
40142e5aef
ChibiOS: implement way to clear i2c bus by toggling clock line
2018-02-08 17:36:33 +11:00
Andrew Tridgell
8d43c6c3dc
AP_Radio: implement OTA update for cc2500
2018-02-08 17:36:33 +11:00
Andrew Tridgell
0d089e8116
HAL_ChibiOS: fixed F412 OF reset pin
2018-02-08 17:36:33 +11:00
Andrew Tridgell
eeff485a39
AP_Radio: fixed timing of telem packets
2018-02-08 17:36:33 +11:00
Andrew Tridgell
240b6d57f7
AP_Radio: added SRT packet formats for cc2500
2018-02-08 17:36:33 +11:00
Andrew Tridgell
2b9dd0b394
AP_Radio: fixed startup with stored bind info
2018-02-08 17:36:33 +11:00
Andrew Tridgell
3c3389a005
HAL_ChibiOS: raise I2C bus priority on F412
...
needed for good scheduling with I2C IMU
2018-02-08 17:36:33 +11:00
Andrew Tridgell
20a008c80a
HAL_ChibiOS: disable trace buffers
...
these were unusued but still allocated
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b380143349
AP_InertialSensor: improved handling of I2C invensense sensor
...
on I2C the lower bus bandwidth changes the tradeoffs
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b33c815e96
AP_InertialSensor: added whoami for prototype 20789
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b3ed8fd3f9
AP_Scheduler: scale perf_info with loop rate
...
this allows it to be used for a wide range of loop rates
2018-02-08 17:36:33 +11:00
Andrew Tridgell
875008f2a6
HAL_ChibiOS: lock all DMA channels on reboot
...
this fixes a problem with the ICM-20789 on I2C where a reboot while the bus is active
leaves the IMU in a dead state where it can't be recovered without a power cycle.
2018-02-08 17:36:33 +11:00
Andrew Tridgell
32ddbca428
AP_Radio: do cypress sends as single transfer
...
this prevents timing errors to cypress chip on packet send
2018-02-08 17:36:33 +11:00
Andrew Tridgell
65f4c0ba50
AP_Radio: improved timeout abstraction in cypress driver
2018-02-08 17:36:33 +11:00
Andrew Tridgell
6faace278a
HAL_ChibiOS: run i2c at 400kHz on F412
2018-02-08 17:36:33 +11:00
Andrew Tridgell
907728e323
AP_Radio: prevent crash if cc2500 device not found
2018-02-08 17:36:33 +11:00
Andrew Tridgell
9f53ae1ea4
HAL_ChibiOS: added F412-rev1 hwdef.dat
2018-02-08 17:36:33 +11:00
Andrew Tridgell
ad8db6cda3
AP_InertialSensor: added sensor type ICM20789_SPI
2018-02-08 17:36:33 +11:00
Andrew Tridgell
2c8e6bb834
AP_Compass: use generic defines for BMM150
2018-02-08 17:36:33 +11:00
Andrew Tridgell
00d3c158db
AP_Baro: use generic defines for 20789
2018-02-08 17:36:33 +11:00
Andrew Tridgell
6bc3d126bb
AP_HAL: added sensor defines for BMM150 and ICM20789
2018-02-08 17:36:33 +11:00
Andrew Tridgell
47ce37f463
HAL_ChibiOS: report I2C clock downgrades
2018-02-08 17:36:33 +11:00
Andrew Tridgell
8dcf89b2b7
AP_Scheduler: put scheduler debug on console
2018-02-08 17:36:33 +11:00
Andrew Tridgell
73418519eb
HAL_ChibiOS: enable analog debug on F412
2018-02-08 17:36:33 +11:00
Andrew Tridgell
fd824e6258
HAL_ChibiOS: enable toy mode on F412
2018-02-08 17:36:33 +11:00
Andrew Tridgell
d208dc69d3
Tools: moved make_abin.sh into ChibiOS scripts
2018-02-08 17:36:33 +11:00
Andrew Tridgell
cc8a37b2fc
AP_Radio: pack telemetry structures
2018-02-08 17:36:33 +11:00
Andrew Tridgell
4aa604a193
HAL_ChibiOS: enable pixartflow on skyviper-V2450
2018-02-08 17:36:33 +11:00
Andrew Tridgell
429a2beb86
AP_OpticalFlow: enable pixart flow on PCNC1 boards
2018-02-08 17:36:33 +11:00
Andrew Tridgell
8f1e8e787a
GCS_MAVLink: added DATA96 hook for AP_Radio
2018-02-08 17:36:33 +11:00
Andrew Tridgell
0b5e3936fe
AP_AHRS: added earth to body 2D rotations
2018-02-08 17:36:33 +11:00
Andrew Tridgell
9cce1e0733
StorageManager: expanded bind info to 56 bytes
...
cc2500 needs a larger bind area
2018-02-08 17:36:33 +11:00
Andrew Tridgell
7ac6df6f3e
AP_Radio: use GDO2 for IRQ on cc2500
2018-02-08 17:36:33 +11:00
Andrew Tridgell
3456d67b2f
AP_Radio: some boards won't have a radio reset pin
2018-02-08 17:36:33 +11:00
Andrew Tridgell
591e0c2249
HAL_ChibiOS: allow control of interrupt port
...
F412 has radio IRQ on port B
2018-02-08 17:36:33 +11:00
Andrew Tridgell
3cacb1d4b5
HAL_ChibiOS: commented the motor order in hwdef
2018-02-08 17:36:33 +11:00
Andrew Tridgell
4e8f8e88d9
AP_TempCalibration: fixed degC units
2018-02-08 17:36:33 +11:00
Andrew Tridgell
42b2843032
AP_Radio: removed obsolete example code
2018-02-08 17:36:33 +11:00
Andrew Tridgell
570a05e9d3
AP_OpticalFlow: fixed pixart SPI name
2018-02-08 17:36:33 +11:00
Andrew Tridgell
3f7934d082
AP_Radio: improvements to cc2500 driver
2018-02-08 17:36:33 +11:00
Andrew Tridgell
e087fc7730
AP_Radio: initial implementation of cc2500 driver
...
using D16 protocol. It can bind and receive packets, but packet rate
it very low
2018-02-08 17:36:33 +11:00
Andrew Tridgell
f3f6972fc0
HAL_ChibiOS: output panics on system console
2018-02-08 17:36:33 +11:00
Andrew Tridgell
7c8cf0a39e
AP_OpticalFlow: fixed SPI name for pixart flow sensor
2018-02-08 17:36:33 +11:00
Andrew Tridgell
5a6831b606
AP_Baro: allow ICM-20789 on SPI or I2C
2018-02-08 17:36:33 +11:00
Andrew Tridgell
a3dabf3c55
AP_Baro: enable 20789 baro on F412
2018-02-08 17:36:33 +11:00
Andrew Tridgell
ac4017e2ae
RC_Channel: added set_and_save_radio_trim()
...
# Conflicts:
# libraries/RC_Channel/RC_Channel.h
2018-02-08 17:36:33 +11:00
Andrew Tridgell
472eed3847
AP_Baro: enable use of pressure correction
...
this allows for temperature correction of baro pressure
2018-02-08 17:36:33 +11:00
Andrew Tridgell
177284bd6b
AP_TempCalibration: temperature calibration library
...
this adds opportunistic temperature calibration. This is initially only
for barometers, and has been only tested with the ICM-20789, but can be
extended to other sensors and other barometers
2018-02-08 17:36:33 +11:00
Andrew Tridgell
57a3bc1397
AP_Compass: new compass learning system
...
this learns compass offsets using magnetic tables and compass
observations
2018-02-08 17:36:33 +11:00
Andrew Tridgell
6a89fdf268
SITL: use AP_Declination for magnetic tables
2018-02-08 17:36:33 +11:00
Andrew Tridgell
252fc9c757
AP_Declination: added inclination and intensity tables
...
moved from SITL/SIM_Aircraft.h
2018-02-08 17:36:33 +11:00
Andrew Tridgell
ca30f6aec8
AP_Compass: added per-motor compass calibration
...
this allows for a motor calibration vector per motor
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b1ccf575f7
AP_Radio: support DATA96 packets for fw update
...
this allows for update of remote radio firmware via MAVLink DATA96
packets
2018-02-08 17:36:33 +11:00
Andrew Tridgell
6ef5f61faa
AP_Radio: add ChibiOS support
2018-02-08 17:36:33 +11:00
Andrew Tridgell
14dcee75f1
AP_Notify: added video recording flag
2018-02-08 17:36:33 +11:00
Andrew Tridgell
e2d91535d0
AP_AHRS: fill in have_pos_abs
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b622fe143e
AP_Notify: added have_pos_abs flag
...
used to notify of high-quality GPS lock
2018-02-08 17:36:33 +11:00
Andrew Tridgell
ac324a3760
StorageManager: added bind info storage area
2018-02-08 17:36:33 +11:00
Andrew Tridgell
3afaf81ccc
AP_BoardConfig: added param object for AP_Radio
2018-02-08 17:36:33 +11:00
Andrew Tridgell
a8af1974d2
HAL_PX4: hook into AP_Radio for RC input
2018-02-08 17:36:33 +11:00
Peter Barker
ddb2f4b5ad
HAL_PX4: define cypress SPI bus
2018-02-08 17:36:33 +11:00
Peter Barker
beb5a41389
AP_HAL: add radio defines for PixHawk
...
This facilitates testing a diret-attached-radio using a PixHawk1
The AUX5 pin is used as an interrupt line.
2018-02-08 17:36:33 +11:00
Andrew Tridgell
be002665cf
AP_Radio: implement CYRF6936 direct attached radio
...
implement DSM2 and DSMX compatible protocols
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b9e5649888
AP_InertialSensor: support PCNC1
2018-02-08 17:36:33 +11:00
Andrew Tridgell
2cc0f25ca0
AP_Compass: support PCNC1
2018-02-08 17:36:33 +11:00
Andrew Tridgell
b2172a0475
AP_Baro: support PCNC1
2018-02-08 17:36:33 +11:00
Peter Barker
12a3cc1179
AP_Baro: use Invensense defines when configuring ICM20789 IMU part
2018-02-08 17:36:33 +11:00
Peter Barker
71cf3941a7
AP_InertialSensor: move Invensense register defines into separate file
2018-02-08 17:36:33 +11:00
Peter Barker
3ee112843c
AP_InertialSensor: configure bypass for 20789 like we do for AK8963
2018-02-08 17:36:33 +11:00
Peter Barker
5d94172ada
AP_InertialSensor: remove clearing of BIT_USER_CTRL_I2C_MST_EN bit in user_ctrl
...
This bit should never be set on 20789
2018-02-08 17:36:33 +11:00
Peter Barker
3a0c5bed85
AP_Baro: ICM20789: example fixes
2018-02-08 17:36:33 +11:00
Peter Barker
bf95be96f3
AP_Baro: ICM20789: stop dev_icm being an instance variable
2018-02-08 17:36:33 +11:00
Peter Barker
c56486a39e
AP_Baro: remove pointless destructor overrides
2018-02-08 17:36:33 +11:00
Peter Barker
05fb28c7f9
AP_Baro: use HAL_SEMAPHORE_BLOCK_FOREVER
2018-02-08 17:36:33 +11:00
Peter Barker
ea83a487d4
AP_Baro: create BARO_ICM20789_DEBUG and use it
2018-02-08 17:36:33 +11:00
Peter Barker
31d8b6ba64
AP_Baro: do not take semaphore if HAL_INS_MPU60x0_NAME not set
2018-02-08 17:36:33 +11:00
Andrew Tridgell
bf67153791
AP_Baro: implement ICM20789 barometer
2018-02-08 17:36:33 +11:00
Andrew Tridgell
5a4f0fed2d
AP_InertialSensor: added ICM-20789 support
2018-02-08 17:36:33 +11:00
James Stewart
ec5faed133
GCS_MAVLink: send mission item requests to correct destination for partial updates
...
The correct destination is the GCS which last requested to update the mission (full or partial), not just the last GCS to set the mission count (full only).
2018-02-07 07:01:32 -08:00
Andrew Tridgell
75226ba187
HAL_ChibiOS: enable logging on MindPX-v2
...
not working yet, seems to be a problem with SDIO interface
2018-02-07 20:33:45 +11:00
Andrew Tridgell
4548fd4d2f
HAL_ChibiOS: changed RCIN to PULLDOWN
...
this fixes a high cpu load with no receiver connected
2018-02-07 20:33:45 +11:00
Andrew Tridgell
86189393a7
HAL_ChibiOS: fixed build warnings
2018-02-07 20:33:45 +11:00
Andrew Tridgell
bc96cb8a19
AP_HAL: fixed build warnings
2018-02-07 20:33:45 +11:00
Andrew Tridgell
9ceddbdab6
AP_ADSB: fixed build warning
2018-02-07 20:33:45 +11:00
Andrew Tridgell
7d2e3c0d04
AP_Notify: fixed build warning
2018-02-07 20:33:45 +11:00
Andrew Tridgell
4886ffbf8a
HAL_ChibiOS: fixed build warnings
2018-02-07 20:33:45 +11:00
Andrew Tridgell
0d8cdd2728
AP_Compass: fixed warning
2018-02-07 20:33:45 +11:00
Andrew Tridgell
30e4323c6d
HAL_ChibiOS: disable USART1 till USB problem solved
...
using USART1 causes USB disconnects. The behaviour is like CTS/RTS is
enabled on USART1, but it is disabled.
2018-02-07 20:33:45 +11:00
Andrew Tridgell
d0eb2970c7
HAL_ChibiOS: ensure RTS and CTS are both disabled for no flow control
2018-02-07 20:33:45 +11:00
Andrew Tridgell
82f1f462ae
HAL_ChibiOS: ensure we don't init a uart driver twice
2018-02-07 20:33:45 +11:00
Andrew Tridgell
ad5a04fc89
HAL_ChibiOS: added NODMA option
...
this allows a peripheral to be configured without DMA (for low-use
UARTs)
2018-02-07 20:33:45 +11:00
Andrew Tridgell
74f4d5a3c9
HAL_ChibiOS: push MPU6500 to 4MHz on mindpx-v2
2018-02-07 20:33:45 +11:00
Andrew Tridgell
f4521772c1
AP_InertialSensor: don't try fast sampling on a MPU6500
...
it can't do it
2018-02-07 20:33:45 +11:00
Andrew Tridgell
d575d676b6
AP_InertialSensor: fixed another transfer without bus semaphore
2018-02-07 20:33:45 +11:00
Andrew Tridgell
f1ce321a2f
HAL_ChibiOS: added checking of bus owner
...
this ensures all bus transfers are only done by the thread that owns
the semaphore
2018-02-07 20:33:45 +11:00
Andrew Tridgell
2ffb8d1583
AP_InertialSensor: fixed a bug where bus semaphore not held
...
during init of the invensense driver we could do a transfer without
the bus semaphore held. That violates the locking rules for the bus
2018-02-07 20:33:45 +11:00
Andrew Tridgell
fa68210210
HAL_ChibiOS: fixed build with older compilers
2018-02-07 20:33:45 +11:00
Andrew Tridgell
626632989e
HAL_ChibiOS: fixed build for boards with no USB
2018-02-07 20:33:45 +11:00
Andrew Tridgell
41758348e5
HAL_ChibiOS: added checking of lock state in shared_dma
...
and use lock around check for tx completion in UART handler
2018-02-07 20:33:45 +11:00
Andrew Tridgell
dce4c90467
HAL_ChibiOS: moved UART thread to UART driver
...
use an event model for triggering sends from tx complete DMA handler
for unbuffered uarts
2018-02-07 20:33:45 +11:00
Andrew Tridgell
5fc12f82fb
HAL_ChibiOS: expanded interrupt stack to 256
...
this is very conservative, and may be trimmed later based on analysis
of stack usage
2018-02-07 20:33:45 +11:00
Andrew Tridgell
aae1cc22f4
HAL_ChibiOS: updated USB device strings
...
use defaults or add in serial number
2018-02-07 20:33:45 +11:00
Andrew Tridgell
4b8bde746e
HAL_ChibiOS: improved default USB strings
...
use board name and serial number to make IDs unique
2018-02-07 20:33:45 +11:00
Andrew Tridgell
23e1b2e271
HAL_ChibiOS: added paranoid state checking on I2C
...
this is here just while debugging an issue with Mark
2018-02-07 20:33:45 +11:00
Andrew Tridgell
7e19f49e42
HAL_ChibiOS: fixed DMA lock in SoftSigReader
2018-02-07 20:33:45 +11:00
Andrew Tridgell
1aa6a0068a
HAL_ChibiOS: fixed order of I2C DMA
...
this was harmless, but confusing for debugging
2018-02-07 20:33:45 +11:00
Andrew Tridgell
111e5b6268
HAL_ChibiOS: change USB ID for revo-mini
2018-02-07 20:33:45 +11:00
Andrew Tridgell
4d018cf5e2
HAL_ChibiOS: take lock on DMA allocate/deallocate
...
this is required for the stm32_dma_stream bitmask manipulation
2018-02-07 20:33:45 +11:00
Andrew Tridgell
bc49c0d2c5
HAL_ChibiOS: make hwdef.h the same on python2 and python3
...
and output to /tmp by default to prevent accidental use of old hwdef.h
in the build
2018-02-07 20:33:45 +11:00
Andrew Tridgell
e002fbdb8d
HAL_ChibiOS: fixed a build warning
2018-02-07 20:33:45 +11:00
Andrew Tridgell
23803df038
AP_Compass: allows boards to define orientation of HMC5843
2018-02-07 20:33:45 +11:00
Andrew Tridgell
077aa24c6d
HAL_ChibiOS: add more pins for revo-mini port
2018-02-07 20:33:45 +11:00
Andrew Tridgell
e91144cc8e
HAL_ChibiOS: allow for empty UART drivers
...
allows for boards with no default GPS port
2018-02-07 20:33:45 +11:00
Andrew Tridgell
e0212ebe85
HAL_ChibiOS: cope with ETR timer channels
...
trean the ETR capability as a separate AF
2018-02-07 20:33:45 +11:00
Andrew Tridgell
c1df2a8a4b
HAL_ChibiOS: cope with timers 10 and later
2018-02-07 20:33:45 +11:00
Andrew Tridgell
d191b37520
HAL_ChibiOS: cope with having no ADC inputs
2018-02-07 20:33:45 +11:00
Andrew Tridgell
87389e0fdc
HAL_ChibiOS: fixed double DMA allocation on i2c
2018-02-07 20:33:45 +11:00
Andrew Tridgell
19e1349d0a
HAL_ChibiOS: setup serial5 for fmuv3 ESP8266
2018-02-07 20:33:45 +11:00
Andrew Tridgell
fca0ad4f85
AP_SerialManager: allow hwdef.dat setup of serial5 config
2018-02-07 20:33:45 +11:00
Andrew Tridgell
560948dc69
HAL_ChibiOS: fixed GPIOs for ESP8266 port
2018-02-07 20:33:45 +11:00
Andrew Tridgell
fa96e23552
HAL_ChibiOS: setup correct volt and current pins
...
use hwdef.dat to specify battery pins
2018-02-07 20:33:45 +11:00
Andrew Tridgell
626b9289be
AP_BattMonitor: allow hwdef.dat config of battery pins
2018-02-07 20:33:45 +11:00
Andrew Tridgell
85acbcb21d
HAL_ChibiOS: fixed UART send from TX complete IRQ
2018-02-07 20:33:45 +11:00
Andrew Tridgell
65b762ddfe
AP_Notify: support OLED display on ChibiOS
2018-02-07 20:33:45 +11:00
Andrew Tridgell
63a825dd2c
HAL_ChibiOS: don't call spiStart() unless bus is stopped
2018-02-07 20:33:45 +11:00
Andrew Tridgell
2513e60e3c
AP_SerialManager: use unbuffered writes for volz
2018-02-07 20:33:45 +11:00
Andrew Tridgell
e29b79f41b
HAL_ChibiOS: fixed DMA allocation bug on SPI
...
thanks to Mark Whitehorn for finding this crash
2018-02-07 20:33:45 +11:00
Andrew Tridgell
29add8a880
HAL_ChibiOS: fixed build without FATFS enabled
2018-02-07 20:33:45 +11:00
Andrew Tridgell
6b187b393a
HAL_ChibiOS: fixed fmuv4 build
2018-02-07 20:33:45 +11:00
Siddharth Purohit
e1a8bba58b
HAL_ChibiOS: increase the stack size for uavcan thread
2018-02-07 20:33:45 +11:00
Siddharth Purohit
17fef4b630
HAL_PX4: add support for api change in AP_HAL::CANManager
2018-02-07 20:33:45 +11:00
Siddharth Purohit
a55f1c85af
HAL_Linux: add support for api change in AP_HAL::CANManager
2018-02-07 20:33:45 +11:00
Siddharth Purohit
8d5667afa0
AP_UAVCAN: add method to read driver from parent can manager
2018-02-07 20:33:45 +11:00
Siddharth Purohit
77f8acd7a1
HAL_ChibiOS: add CAN to supported peripherals list
2018-02-07 20:33:45 +11:00
Siddharth Purohit
6f21c1583f
HAL_ChibiOS: add definitions to support uavcan in fmuv3
2018-02-07 20:33:45 +11:00
Siddharth Purohit
edd0e8d2f5
HAL_ChibiOS: add CANManager to ChibiOS namespace
2018-02-07 20:33:45 +11:00
Siddharth Purohit
143686f70d
HAL_ChibiOS: add placeholder cstdio header
2018-02-07 20:33:45 +11:00
Siddharth Purohit
539d5adc13
hwdef: add more posix methods
2018-02-07 20:33:45 +11:00
Siddharth Purohit
288f6b1fa0
HAL_ChibiOS: add chibios cpp wrapers, libuavcan's stm32 driver uses it
2018-02-07 20:33:45 +11:00
Siddharth Purohit
f2e77ab773
AP_HAL_ChibiOS: add uavcan thread
2018-02-07 20:33:45 +11:00
Siddharth Purohit
3c009cf02c
AP_HAL_ChibiOS: add CAN driver
2018-02-07 20:33:45 +11:00
Siddharth Purohit
5bcbc4c142
AP_HAL: default to not UAVCAN support for chibios boards
2018-02-07 20:33:45 +11:00
Siddharth Purohit
d539a157b7
AP_HAL: move to having ICanDriver as member instead of inheriting it
...
this is to support having drivers using libuavcan supplied helper objects, a method which can lead to much less duplication of code
2018-02-07 20:33:45 +11:00
Siddharth Purohit
f0f4239d4a
AP_Compass: skip using posix headers for non posix systems
2018-02-07 20:33:45 +11:00
Siddharth Purohit
a413fef77f
AP_BoardConfig: add support for UAVCAN setup on ChibiOS boards
2018-02-07 20:33:45 +11:00
Siddharth Purohit
175d806b5f
AP_Baro: skip using posix headers for non-posix systems
2018-02-07 20:33:45 +11:00
Andrew Tridgell
b992b5e02a
HAL_ChibiOS: allow for 16kHz brushed on all timers
2018-02-07 20:33:45 +11:00
Andrew Tridgell
b0d0ee1f01
HAL_ChibiOS: reformat using yapf and support python3
...
allow hwdef.h compilation using python3
2018-02-07 20:33:45 +11:00
Andrew Tridgell
67e0ba22fe
HAL_ChibiOS: fixed some errors in F405 tables
2018-02-07 20:33:45 +11:00
Andrew Tridgell
70ff3871e0
HAL_ChibiOS: fixed RC in on CH1 of timer
2018-02-07 20:33:45 +11:00
Andrew Tridgell
890d322b47
HAL_ChibiOS: starting on mini-pix hwdef.dat
...
for RadioLink mini-pix board
2018-02-07 20:33:45 +11:00
Andrew Tridgell
5da17e5b60
AP_HAL: added MINIPIX board type
2018-02-07 20:33:45 +11:00
Andrew Tridgell
23555f4c25
HAL_ChibiOS: allow for empty storage during bringup
...
useful when storage backend driver isn't written yet
2018-02-07 20:33:45 +11:00
Andrew Tridgell
ecce2a73d0
HAL_ChibiOS: Storage::_timer_tick is an override
2018-02-07 20:33:45 +11:00
Andrew Tridgell
713006bb1d
HAL_ChibiOS: allow more OTG defines to be overridden
2018-02-07 20:33:45 +11:00
Andrew Tridgell
33a87194dc
HAL_VRBrain: Storage::_timer_tick is an override
2018-02-07 20:33:45 +11:00
Andrew Tridgell
0f079deebf
HAL_PX4: Storage::_timer_tick is an override
2018-02-07 20:33:45 +11:00
Andrew Tridgell
26161ee467
HAL_Linux: Storage::_timer_tick is an override
2018-02-07 20:33:45 +11:00
Andrew Tridgell
472ba5bde7
AP_HAL: make _timer_tick() in Storage available in all HALs
...
this makes using the Empty::Storage easier
2018-02-07 20:33:45 +11:00
Andrew Tridgell
3e65347b97
AP_HAL: added REVOMINI board type
2018-02-07 20:33:45 +11:00
Andrew Tridgell
1fb257a35a
HAL_ChibiOS: initial hwdef.dat for revo mini
2018-02-07 20:33:45 +11:00
Andrew Tridgell
979a2a4796
HAL_ChibiOS: removed debug code
2018-02-07 20:33:45 +11:00
Siddharth Purohit
538af2a58a
HAL_ChibiOS: fix parity and stop bit setting
2018-02-07 20:33:45 +11:00
Mark Whitehorn
1a167a7d1f
AP_SerialManager: disable flow control for sbus1 port
2018-02-07 20:33:45 +11:00
Mark Whitehorn
b94b1dcd97
AP_HAL_ChibiOS: add missing declaration
2018-02-07 20:33:45 +11:00
Siddharth Purohit
df4bf7e476
HAL_ChibiOS: fix irq clash with unnecessary access to readbuf ring buffer
2018-02-07 20:33:45 +11:00
Siddharth Purohit
02696882e9
HAL_ChibiOS: if unbuffered write, do continue to invoke DMA writes
...
adds higher latency to device sharing DMA
2018-02-07 20:33:45 +11:00
Siddharth Purohit
0c914838b2
AP_IOMCU: fix data type for available bytes
2018-02-07 20:33:45 +11:00
proficnc
c613c0bde2
added the cube red hardware definition
2018-02-07 20:33:45 +11:00
Andrew Tridgell
442b280368
AP_IOMCU: improved error checking
...
and avoid pointless change of rates
2018-02-07 20:33:45 +11:00
Andrew Tridgell
3dacbd1b36
HAL_ChibiOS: hold write lock for unbuffered writes
2018-02-07 20:33:45 +11:00
Andrew Tridgell
ad26ca4a27
HAL_ChibiOS: implement parity and stop bits controls
2018-02-07 20:33:45 +11:00
Andrew Tridgell
2e15285c51
HAL_ChibiOS: refuse unbuffered writes without DMA
...
we would need much more complex code to handle this
2018-02-07 20:33:45 +11:00
Andrew Tridgell
5ffcff1a79
AP_IOMCU: use unbuffered UART writes
...
this lowers latency for servo outputs to the IOMCU
2018-02-07 20:33:45 +11:00
Andrew Tridgell
3f2cc2c9d6
HAL_ChibiOS: implement low latency UART writes
...
this implements the set_unbuffered_writes() API by performing writes
directly in the write() call and not from a timer
2018-02-07 20:33:45 +11:00
Andrew Tridgell
015c3a1fa3
HAL_ChibiOS: removed duplicate defines
2018-02-07 20:33:45 +11:00
Andrew Tridgell
2bb99bfe53
HAL_VRBRAIN: implement _timer_tick in UARTDriver
2018-02-07 20:33:45 +11:00
Andrew Tridgell
e276edbb03
HAL_SITL: implement _timer_tick in UARTDriver
2018-02-07 20:33:45 +11:00
Andrew Tridgell
e4fc0e9f62
HAL_QURT: implement _timer_tick in UARTDriver
2018-02-07 20:33:45 +11:00
Andrew Tridgell
25ea60da69
HAL_PX4: implement _timer_tick in UARTDriver
2018-02-07 20:33:45 +11:00
Andrew Tridgell
22de99dd58
HAL_Linux: implement _timer_tick in UARTDriver
2018-02-07 20:33:45 +11:00
Andrew Tridgell
865e4f3104
HAL_ChibiOS: implement _timer_tick in UARTDriver
2018-02-07 20:33:45 +11:00
Andrew Tridgell
5179d13dbf
AP_HAL: added virtual _timer_tick method on UARTDriver
...
this is needed to allow HALs to update UARTs when the number of UARTs
they bhave varies (some may be instances of HAL_Empty)
2018-02-07 20:33:45 +11:00
Andrew Tridgell
a5bafb399f
HAL_ChibiOS: adjust SPI pin speeds
2018-02-07 20:33:45 +11:00
Holger Steinhaus
36f0b429fb
GCS_MAVLink: send BATTERY_STATUS.energy_consumed if current measurement is available
2018-02-06 20:00:16 -07:00
Holger Steinhaus
d1a37a60b7
DataFlash: log consumed energy (Wh)
2018-02-06 20:00:16 -07:00
Holger Steinhaus
7383552ebc
AP_BatteryMonitor: count mWh spent since powerup
2018-02-06 20:00:16 -07:00
Igor Anokhin
e6d4b2a087
AP_InertialSensor: add LSM9DS1 entry
...
Enable LSM9DS1 in case it is selected
2018-02-06 09:31:26 -08:00
Igor Anokhin
5cf15db966
AP_HAL: add LSM9DS1 defines
...
Add defines for name and number sensor
2018-02-06 09:31:26 -08:00
Igor Anokhin
be386b2b73
AP_InertialSensor: LSM9DS1 add FIFO support
...
Make reading data with FIFO
2018-02-06 09:31:26 -08:00
Igor Anokhin
44d5112488
AP_InertialSensor: add LSM9DS1 support
...
Make LSM9DS1 driver
2018-02-06 09:31:26 -08:00
Nicholas Engle
1103e92884
SITL: Add SIM_WIND_DIR_Z parameter for SITL
...
This controls the vertical pitch of the 3d wind vector, allowing futher control of the wind
using systems like dronekit. This change directly effects the calcuation of the wind vector
2018-02-05 16:38:53 -08:00
Nicholas Engle
8b08e9388d
AP_HAL_SITL: Add SIM_WIND_DIR_Z parameter for SITL
...
This controls the vertical pitch of the 3d wind vector, allowing futher control of the wind
using systems like dronekit. This change directly effects the calcuation of the wind vector
2018-02-05 16:38:53 -08:00
Michael du Breuil
725f1a2f2b
DataFlash: Use battery singleton
2018-02-06 00:11:32 +00:00
Michael du Breuil
03bf247d36
AP_BattMonitor: Create a battery singleton
...
Also logs battery data from the read function directly
2018-02-06 00:11:32 +00:00
Andrew Tridgell
83d1e71cb2
AP_Baro: ran BMP085 driver through code formatter
2018-02-05 12:12:03 +11:00
night-ghost
2c043b822b
AP_Baro: fixed BMP085 driver for current API
2018-02-05 12:12:03 +11:00
mirkix
bf758098d7
AP_HAL_Linux: fix deallocation
2018-02-05 11:05:12 +11:00
LukeMike
3dcaf83eaa
VRBRAIN / DataFlash: some update for new VR Brain 5.2E (EEPROM version)
2018-02-05 08:26:49 +11:00
LukeMike
250bf53912
VRBRAIN / AP_HAL_VRBRAIN: some update for new VR Brain 5.2E (EEPROM version)
2018-02-05 08:26:49 +11:00
LukeMike
bfcece7edd
VRBRAIN / AP_HAL: some update for new VR Brain 5.2E (EEPROM version)
2018-02-05 08:26:49 +11:00
LukeMike
ccb316f3f3
VRBRAIN / AP_BoardConfig: some update for new VR Brain 5.2E (EEPROM version)
2018-02-05 08:26:49 +11:00
LukeMike
8b737c54b9
VRBRAIN / AP_BattMonitor: some update for new VR Brain 5.2E (EEPROM version)
2018-02-05 08:26:49 +11:00
LukeMike
bf6e57e7a4
VRBRAIN / DataFlash: added writebuf_chunk for VR Brain 5.4
2018-02-05 08:26:49 +11:00
LukeMike
721f55e93c
VRBRAIN / AP_RangeFinder: removed AP_RangeFinder_PX4_PWM for VR Brain boards
2018-02-05 08:26:49 +11:00
LukeMike
a319f6632f
VRBRAIN / AP_RPM: removed RPM_PX4_PWM for VR Brain 5.1 and VR Micro Brain 5.2 (they haven't this input pin)
2018-02-05 08:26:49 +11:00
LukeMike
502f19cbae
VRBRAIN / AP_InertialSensor: added inertial sensors init for VR Brain boards
2018-02-05 08:26:49 +11:00
LukeMike
432f6c2a4a
VRBRAIN / APCompass: added compass sensor init for VR Brain boards
2018-02-05 08:26:49 +11:00
LukeMike
d48f9397d0
VRBRAIN / AP_Baro: added barometer sensor init for VR Brain boards
2018-02-05 08:26:49 +11:00
LukeMike
dab8f93628
VRBRAIN / AP_HAL: changed vrbrain board configuration file
2018-02-05 08:26:49 +11:00
LukeMike
505497b555
VRBRAIN / AP_BoardConfig: added fmu_mode parameter for VR Brain boards
2018-02-05 08:26:49 +11:00
LukeMike
b7985f77b5
VRBRAIN / AP_BoardConfig: added VR Brain boards into board_setup_drivers and board_autodetect
2018-02-05 08:26:49 +11:00
LukeMike
6b820ac9e4
VRBRAIN / AP_BoardConfig: added VR Brain define into px4_board_type enum
2018-02-05 08:26:49 +11:00
LukeMike
97b29a333d
VRBRAIN / AP_HAL_VRBRAIN: updated AP_HAL
2018-02-05 08:26:49 +11:00
Michael du Breuil
200aacea43
AP_AdvancedFailsafe: Report MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION
2018-02-03 09:36:03 +09:00
Randy Mackay
f189ce5c68
AC_WPNav: minor formatting fix
...
non-functional change
2018-02-02 20:55:20 +09:00
Andrew Tridgell
2067e25523
AP_Compass: make length filter in MAG3110 optional
...
compile time for now, later can may become parameter
2018-02-02 21:07:40 +11:00
night-ghost
2065cc879c
AP_HAL: mAG3110 driver
2018-02-02 21:07:40 +11:00
night-ghost
b6bf90ab93
AP_Compass: mAG3110 driver
2018-02-02 21:07:40 +11:00
Andrew Tridgell
1513246040
AP_FlashStorage: fixed two bugs found by night-ghost
...
this fixes two issues found by night-ghost. The first occurs if a 16
bit flash write is not atomic and only the first byte is written. Then
we could end up declaring the data invalid on reboot and erasing.
The second is a race in switching sectors. If power off occurs at the
wrong time we would trigger en erase on reboot.
2018-02-02 14:19:12 +09:00
mirkix
8da1252959
AP_BattMonitor: add default pins and values for BeagleBone Blue
2018-02-02 10:01:34 +09:00
Peter Barker
adde7bc588
AP_Terrain: fix snprintf buffer length warning
...
Also includes fix from Tridge to use MIN() instead of MAX()
2018-02-02 09:59:06 +09:00
murata
8070c13963
AP_Soaring: delete \n from the log using gcs().send_text
2018-02-02 09:41:23 +09:00
murata
cdfca9d9ea
AP_HAL_PX4: delete \n from the log using gcs().send_text
2018-02-02 09:40:55 +09:00
murata
5b3a402d36
AP_Camera: delete \n from the log using gcs().send_text
2018-02-02 09:40:05 +09:00
murata
3ec733d4f8
AP_BattMonitor: Aggregate the commands defined in the SMBUS specification.
...
AP_BattMonitor: Aggregate the commands defined in the SMBUS specification.
2018-02-02 09:17:30 +09:00
Peter Barker
8e8b0dcc06
DataFlash: add ? and - to multiplier table
...
This allows a consumer to expect referential integrity for the
multipliers
2018-02-02 09:15:59 +09:00
Tatsuya Yamaguchi
aef9fa4a63
AP_NavEKF3: delete \n from the log using gcs().send_text
2018-02-02 09:13:54 +09:00
Lucas De Marchi
184b017b33
AP_HAL: fix warning from having undefined HAL_WITH_IO_MCU
...
In file included from ../../libraries/AP_IOMCU/AP_IOMCU.cpp:8:0:
../../libraries/AP_IOMCU/AP_IOMCU.h:10:5: warning: "HAL_WITH_IO_MCU" is not defined [-Wundef]
#if HAL_WITH_IO_MCU
^
../../libraries/AP_IOMCU/AP_IOMCU.cpp:10:5: warning: "HAL_WITH_IO_MCU" is not defined [-Wundef]
#if HAL_WITH_IO_MCU
^
And so on.
2018-02-02 09:11:46 +09:00
Randy Mackay
3badcdcfba
AC_PosControl: default gains for sub
2018-01-31 08:48:21 +09:00
Randy Mackay
61933c6f1c
AC_PosControl: shorten PSC_ACCELZ param to PSC_ACCZ
2018-01-31 08:48:21 +09:00
murata
6a87840c7a
AP_NavEKF3: Change the if statement to a switch statement.
2018-01-28 22:20:08 +00:00
Leonard Hall
692e6518cc
AC_AttitudeControl: update param desc values for large copters
2018-01-27 11:54:04 +09:00
Leonard Hall
691abab95e
AC_AttitudeControl: Update parameter ranges
2018-01-27 11:38:09 +09:00
David Ingraham
2547ca399a
AP_Airspeed: Fix ARSPD2_TYPE docs
2018-01-26 13:19:53 -08:00
Randy Mackay
ebf405e53d
AC_Avoid: reduce min and default DIST_MAX values
2018-01-25 11:16:01 +09:00
Andrew Tridgell
6558da2c4c
HAL_SITL: fixed valgrind error in ubx driver
...
this was causing a valgrind error on all runs with a virtual ublox GPS
2018-01-24 18:00:42 -07:00
night-ghost
3165d72647
AP_Motors: reduce unnecessary multiple call of get_compensation_gain()
2018-01-24 19:26:15 +09:00
Andrew Tridgell
c6c5603382
AP_Param: added back key dumping code
...
this is essential for working out conversion tables.
2018-01-24 18:23:59 +11:00
mirkix
c5eb52bf8d
AP_HAL_Linux: fix comment
2018-01-23 13:32:12 -08:00
bnsgeyer
7a9e424977
AP_Motors: added comments to indicate parameter indices previously used by RSC_PWM_MIN, RSC_PWM_MAX, and RSC_PWM_REV
2018-01-23 14:12:27 +09:00
Randy Mackay
04822152da
AC_PID: fixes after peer review of AC_PID_2D
2018-01-23 12:00:43 +09:00
Randy Mackay
efbd8eb386
AC_WPNav: remove unused definition
...
This has been moved to AC_PosControl library
2018-01-23 12:00:43 +09:00
Randy Mackay
368245017a
AC_WPNav: access pos-controller's horizontal p object
2018-01-23 12:00:43 +09:00
Randy Mackay
9c00eb3d5f
AC_PosControl_Sub: move pids to be local
2018-01-23 12:00:43 +09:00
Randy Mackay
c70d3e0ab8
AC_PosControl: move pids to be local
2018-01-23 12:00:43 +09:00
Randy Mackay
00037fd50e
AC_PosControl_Sub: replace velocity pi with local pid
2018-01-23 12:00:43 +09:00
Randy Mackay
3a73ff1e2e
AC_PosControl: replace velocity control with local 2-axis PID
2018-01-23 12:00:43 +09:00
Randy Mackay
398a0d89bf
AC_P: add const accessor
2018-01-23 12:00:43 +09:00
Randy Mackay
c1708db208
AC_PID: add const and use is_positive in AC_PI_2D
2018-01-23 12:00:43 +09:00
Leonard Hall
fd964a21d6
AC_PID: add AC_PID_2D
2018-01-23 12:00:43 +09:00
Randy Mackay
9ea16bec15
AP_InertialSensor: resolve compiler warning in example
2018-01-23 08:32:48 +09:00
Steven Josefs
e8debde4b7
AC_Fence: hide ALT_MAX parameter from Rover
2018-01-22 20:42:31 +09:00
Randy Mackay
a1bf9d66f0
AC_Avoid: default behaviour to stop for Rovers
2018-01-22 17:18:41 +09:00
Randy Mackay
ae4ded86a8
AC_Avoid: get_max_speed supports linear acceleration
...
Also get_stopping_distance supports linear deceleration
2018-01-22 17:18:41 +09:00
Randy Mackay
dfaabb543c
AC_Avoid: add adjust_speed
...
this method accepts a heading and speed instead of a velocity vector
2018-01-22 17:18:41 +09:00
Randy Mackay
9d74d82ff6
AC_Avoid: add stopping behaviour
2018-01-22 17:18:41 +09:00
Randy Mackay
c28cfcdc27
AP_Math: add Vector2f::circle_segment_intersection
2018-01-22 17:18:41 +09:00
Randy Mackay
a655c36159
AP_Math: add Vector2f::segment_intersection
2018-01-22 17:18:41 +09:00
Andrew Tridgell
2c73b374f5
AP_Motors: protect against writes to NULL servo_aux
...
if user changes parameter while setting up it could crash
2018-01-21 21:12:13 +11:00
Andrew Tridgell
bdb9f062ae
AP_Motors: removed unused pwm parameters for heli
2018-01-21 21:12:13 +11:00
bnsgeyer
ac2e933358
AP_Motors: Tradheli - Fixed Directdrive Variable Pitch Feature
2018-01-21 21:12:13 +11:00
Andrew Tridgell
7b251c9739
HAL_ChibiOS: lower FRAM CS speed to 2MHz
...
this matches old firmware
2018-01-20 17:40:07 +11:00
Andrew Tridgell
30fd2da108
HAL_ChibiOS: enable RTSCTS and SBUS_OUT
2018-01-20 17:40:07 +11:00
Andrew Tridgell
93a993c575
AP_HAL: setup RTSCTS and SBUS_OUT
2018-01-20 17:40:07 +11:00
Andrew Tridgell
f8a3b0e753
AP_BoardConfig: improved board config
...
use hwdef.dat to enable RTSCTS and SBUS_OUT
2018-01-20 17:40:07 +11:00
Andrew Tridgell
63671b06a8
HAL_ChibiOS: added HAL_I2C_MAX_CLOCK define
2018-01-20 17:40:07 +11:00
Andrew Tridgell
88f11f5a50
HAL_ChibiOS: added HAL_I2C_BUS_BASE
...
this allows fmuv4 to start at bus 1
2018-01-20 17:40:07 +11:00