Lorenz Meier
1474ddbb78
MS5611: Ensure to set the lockmode at the right location
2016-01-23 13:23:32 +01:00
Lorenz Meier
871b4b482e
Do not enable new bus sync yet
2016-01-22 18:07:27 +01:00
Lorenz Meier
c659d7851f
MS5611: Use the right locking mechanism on Pixracer
2016-01-22 17:12:13 +01:00
Mark Whitehorn
ecbcfe838b
clean up, change SPI2 clock back to 12MHz and remove debug prints
2016-01-14 17:55:54 +01:00
Mark Whitehorn
4952d05652
debugging ms5611 on spi2
2016-01-14 17:55:54 +01:00
Lorenz Meier
ebfae73108
MS5611 code style fix
2015-09-05 22:06:15 +02:00
Mark Charlebois
a589d15c52
Refactored debug() and log() in CDev
...
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.
Changed to macros that preserve the output format. Uses new macro that
can be used to implement per object, runtime selectable logging
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-08-11 12:07:06 -07:00
Mark Charlebois
d013ac0927
Support for building more modules with Linux
...
Added more queue support to linux/px4_layer.
Use virt char devices for ms5611, and mavlink.
Added more HRT functionality. uORB latency test
now fails. Likely due to bad HRT impl for Linux.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:07:00 -07:00
Mark Charlebois
9758112e31
Use px4_config.h instead of nuttx/config.h
...
Modified code to use OS independent header file for config settings.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 10:55:41 -07:00
Andrew Tridgell
04a9050410
ms5611: allow for all 4 bus combinations in ms5611 driver
...
this uses the same table driven approach as the hmc5883 driver, and
allows for a ms5611 baro on any of the 4 bus combinations. A simple
"ms5611 start" will start all baros that are found.
2015-02-01 13:09:44 +01:00
Lorenz Meier
a42ec7df1b
MS5611: Deal with missing external bus
2014-07-08 13:50:24 +02:00
Andrew Tridgell
ab90fe7832
ms5611: added -X option for external SPI bus
2014-07-08 11:44:32 +02:00
Ash Charles
e5508a1aa0
Add Gumstix AeroCore device
...
Based on the work of Andrew Smith [1], add board configuration and device
drivers to support the Gumstix AeroCore (previously Aerodroid) board [2]. The
AeroCore is an autopilot board based on a STM32F427 similar to the FMUv2.
[1] https://github.com/smithandrewc/Firmware
[2] https://store.gumstix.com/index.php/products/585/
Signed-off-by: Ash Charles <ashcharles@gmail.com >
2014-05-13 09:41:41 -07:00
Lorenz Meier
f4ac204f46
Cranking up bus speeds for all sensors to achievable 10.4 MHz, will cut the bus lock time to half
2013-12-15 18:32:46 +01:00
Andrew Tridgell
8744aa7536
ms5611: check for all zero in the prom
...
when SPI CLK fails we get all zero data
2013-12-10 11:39:28 +01:00
Andrew Tridgell
b0bb5a3450
ms5611: change bus speed to 5MHz
...
this gives 5MHz SPI bus speed (by asking for 6MHz due to timer
granularity).
Tests with a logic analyser show that the ms5611 is actually more
reliable at 5MHz than lower speeds
2013-12-10 11:01:53 +01:00
Andrew Tridgell
a52e70ca93
ms5611: removed unused variable
2013-12-10 11:01:33 +01:00
Andrew Tridgell
3f0f34a4c7
ms5611: give cleaner SPI traces
...
this makes logic traces cleaner by zeroing extra bytes written
2013-12-10 11:01:20 +01:00
px4dev
19fdaf2009
Use the generic device::SPI locking strategy.
2013-09-12 23:56:53 -07:00
Lorenz Meier
5e6d3604a3
Made MS5611 startup exclusive as well
2013-09-11 22:46:00 +02:00
Julian Oes
58a4c5d544
Added missing include for MS5611
2013-08-05 16:32:59 +02:00
px4dev
31ded04c80
Disable interrupts during ms5611 SPI transactions to prevent interruption by sensor drivers polling other sensors from interrupt context.
2013-07-20 19:09:59 -07:00
px4dev
6cf1208312
Don't build interface drivers we don't have configs for. Make the interface drivers build.
...
Change the way we handle the prom buffer so that we can init the interface before constructing the driver.
2013-07-14 12:42:51 -07:00
px4dev
5350c2be09
Refactor MS5611 driver to use interface nubs for the I2C and SPI versions of the chip. This reduces the amount of duplicated code.
2013-07-14 11:45:21 -07:00