David Sidrane
e358486ef7
aerofc-v1:Scope CRASHDUMP_RESET_ONLY to BOARD_CRASHDUMP_RESET_ONLY
2019-01-25 06:32:37 -08:00
David Sidrane
d122a35606
Add STM32 critical section monitor time resources
2019-01-25 06:32:37 -08:00
David Sidrane
1f54214224
stm32/drv_io_timer:GTIM_CCER_CC1NP not on all STM32 HW
...
The F1 series GTIMs to not have GTIM_CCER_CC1NP.
This bug fix tracks the upstream change that
made GTIM_CCER_CC1NP conditional on the chip.
2019-01-25 06:32:37 -08:00
David Sidrane
e505fe859d
Update Nuttx and NuttX-apps to 7.28+
2019-01-25 06:32:37 -08:00
Beat Küng
74a3c378b2
drv_hrt: inline hrt_elapsed_time
...
GCC did not do that.
2019-01-25 07:53:37 +01:00
Daniel Agar
2ffb49b734
delete px4_includes.h header and update boards/ to use syslog
2019-01-23 18:25:18 -05:00
dvornikov-aa
ce0dd41a11
LPS22HB: Fix invalid driver reset (I2C bus)
2019-01-22 20:11:58 -05:00
Lorenz Meier
46390a1508
HRT: Drop volatile specifier from function call for non-atomic mode
...
This allows the compiler to optimize better without loosing any performance / accuracy.
2019-01-22 23:52:57 +01:00
Lorenz Meier
bca0f7925c
SAMv7: Add atomic and non-atomic HRT calls
...
This reduces interrupt load significantly.
2019-01-22 23:52:57 +01:00
Lorenz Meier
27cae912d1
Kinetis: Add atomic and non-atomic HRT calls
...
This reduces interrupt load significantly.
2019-01-22 23:52:57 +01:00
Lorenz Meier
b7bcec2d8c
HRT: Create new separate call for atomic HRT elapsed time calculation
...
This call rarely needs to be truly atomic and the involved CPU overhead in making it atomic was unnecessary and introduces a lot of IRQ jitter with no value-add. The call has been moved to be non-atomic and the codebase will be inspected and changed in follow-up commits for the few instances where it is truly needed.
2019-01-22 23:52:57 +01:00
Daniel Agar
320d2e9383
create PX4 platform layer initialization helper ( #11269 )
...
- starts requirements for PX4 modules (hrt, param, etc)
2019-01-22 14:13:20 -05:00
Lorenz Meier
b719033d02
MK BL CTRL: Fix startup routine to be compliant with signature.
2019-01-20 10:29:13 -05:00
Daniel Agar
7008558fac
drivers/distance_sensor replace std::vector usage with px4::Array
2019-01-20 12:03:53 +01:00
Daniel Agar
95eff33263
GPS increase task stack 1530 -> 1600 bytes
2019-01-18 12:07:28 -05:00
Dave Royer
f537c98ca2
ulanding radar: update driver for new 2nd gen hardware ( #11035 )
2019-01-18 12:06:34 -05:00
Daniel Agar
52c848a556
mpu6000 split into separate main, header, implementation
2019-01-18 10:39:15 -05:00
Daniel Agar
d299d439c6
mpu6000 use new PX4Accelerometer and PX4Gyroscope classes
2019-01-18 10:39:15 -05:00
Beat Küng
d8ab059ff3
cm8jl65: add comment which CRC is used
2019-01-15 09:19:52 +01:00
Claudio Micheli
8a313ffc26
Applied code-review suggestions.
...
- Removed blocking serial.
- Added passing variables by reference to parser.
- Removed commented code.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
d1da46ef46
Added generic UART configuration.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
ca0cd27c6b
Formatted code.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
7124cbf3af
Fixed CI broken build. Made TELEM2 default port.
...
Device port can be set via SENS_EN_CM8JL65 parameter:
SENS_EN_CM8JL65 = 0 -> Disabled
SENS_EN_CM8JL65 = 1 -> Enabled on TELEM2
SENS_EN_CM8JL65 = 2 -> Enabled on TELEM1
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
e4381bfc87
Added sensor enable/disable parameter (SENS_EN_CM8JL65).
...
Disabled by default.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
46c5a79b57
Renamed files according to distance sensor hardware.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
aee6a83fe0
Code Cleanup. Added configuration notes.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
c5fece6568
Redefined reading strategy from serial to get the latest available data.
...
First "stable" version of the driver.
TODO: - Cleanup the code
- Bench test (compare data with IMU)
- Flight Test
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
39ed84b5cd
Debugging printf.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
5d70ac7fd9
Removed dismissed folder.
...
TODO : Adjust work_queue rescheduling (to always have a 10Hz cycle)
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
b0ac8fe963
Removed blocking "while" cycle to access serial port.
...
Serial is now cycled with work_queue rescheduling if some bytes are missing.
TODO: - Fix occasional sensor spikes (can be identified with crc)
- Clean up the code
- disable debug printf
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
93b3cf241b
Renamed driver folder.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
dd300dca0a
Solved frequency rate issue. Now driver publish at ~10Hz.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
4b7be38e67
Added uORB publishing.
...
TODO: Need to fix driver cycling.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
700fd5652d
Added parsing function. Everything works OK.
...
TODO:
- Clean up the code
- Add uORB publishing messages
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
591e8fde5d
Initial commit. Integrated new distance sensor hardware.
...
TODO: Parsing the data
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Jacob Dahl
29f034c53e
mpu9250 fix hardfaults if attempting to start an already running driver ( #11190 )
...
* removed bus options that were essentially duplicates, causing hardfaults if attempting to start an already running driver. Changed NULL to nullptr. Removed bus options that were unused
* removed condition from if statement that was unnecessary
* fixed style
2019-01-14 09:59:36 -05:00
Beat Küng
ccefc640ac
drv_hrt posix: remove unused code and remove locking from hrt_absolute_time
2019-01-14 11:08:48 +01:00
Daniel Agar
92ca26b111
mpu9250 fix code style
2019-01-09 10:27:19 -05:00
Florian Olbrich
fb386580b8
Fixed failure notices on mpu9250 startup by adding back device probing on I2C interface init.
2019-01-09 09:54:45 -05:00
Florian Olbrich
280a60c86f
Fixed unreliable ICM20948 detection.
...
Fixed ICM20948 magnetometer only option.
Specified bus for internal mpu9250 on Pixhawk 2.1 to avoid premature detection of
other device.
2019-01-09 09:54:45 -05:00
Kevin Lopez Alvarez
490eeeb9d9
RM3100: enable I2C ( #11038 )
2019-01-09 08:57:19 -05:00
Jake Dahl
1699c577c3
Fixed an issue with a local variable that should have been a member variable. Increased the P term to reduce rise time. Removed feedforward as it was not neccessary. Removed some custom commands that didn't serve much of a purpose.
2019-01-08 22:36:09 +01:00
AnnaDaiZH
3b3752b753
pmw3901 increase publish rate and max_ground_distance ( #11066 )
...
* increase pmw3901 publish rate and max_ground_distance
* set work queue to high priority
2019-01-08 14:25:39 -05:00
Hamish Willee
541b962654
CameraTrigger: Feedback fixes
2019-01-08 08:18:24 +01:00
Hamish Willee
68148c5fb4
Add camera trigger pwm params
...
Fix math::constrain usage
Fix second constraint
2019-01-08 08:18:24 +01:00
Daniel Agar
2251150875
uavcan include cstdint for fixed width integer types
2019-01-06 19:20:57 -05:00
Daniel Agar
60f2a92e3d
replace <cfloat> with <float.h>
...
- <cfloat> isn't available in the NuttX c++ library
2019-01-06 19:20:57 -05:00
Daniel Agar
caf26c78e3
rgbled_ncp5623c set main stack 1500
2019-01-03 10:32:49 -05:00
Jacob Dahl
a492d1cfdb
MPU9250 driver fix to preserve bus+device plug-and-play capabilities ( #11020 )
2019-01-03 08:10:23 -05:00
Matthias Grob
36248cb12e
PWMSim: publish disarmed value when not armed
2018-12-29 00:18:05 +01:00