Beat Küng
0f42ecc5c7
durandal-v1: enable dshot
2019-11-29 07:39:08 +01:00
Daniel Agar
071f159794
PX4 work queue: extend to UARTs
2019-11-27 20:44:32 -05:00
Daniel Agar
a7fbaefd83
NuttX cmake small debug helper improvements
2019-11-26 15:39:02 -05:00
Daniel Agar
a8ea55d9b6
remove all <cmath> usage
...
* the NuttX c++ library is incomplete, let's avoid including it until we have a real standard library in place
2019-11-25 10:04:04 -05:00
Daniel Agar
bc182e94e6
sensors split rc_update into new standalone module
2019-11-24 13:25:11 -05:00
Daniel Agar
2811307293
px4_work_queue: increase wq:hp_default stack 1500->1800 bytes (found by stackcheck)
2019-11-23 17:23:30 -05:00
David Sidrane
bbd37ada41
holybro_durandal-v1: update cdcacm product id
2019-11-22 09:39:15 -05:00
David Sidrane
7ca8a8dbaa
durandal-v1:Bootloader
...
Change PID to 0x4b:
Holybro obtained their own PID and VID but APM did not follow
the PX4 convention of makeing the board_id (0x8b) match the PID)
Incorporated the Upstream Bootloader state sequencing checking change.
Change the usb cout to send all chars in 1 write.
2019-11-22 14:32:56 +01:00
Beat Küng
1371887578
board config: add define for adc voltage scaling
2019-11-21 08:19:59 +01:00
Beat Küng
4b290c4903
voltage & current scaling: use px4_arch_adc_dn_fullcount() instead of 4096
...
Fixes the scaling on h7 boards (the ADC has 16 bits resolution).
2019-11-21 08:19:59 +01:00
Daniel Agar
84fe64b1c2
create new multicopter rate controller module (mc_rate_control) split out of mc_att_control
2019-11-19 17:03:11 -05:00
Daniel Agar
1c4a8e7c11
cmake NuttX fix generated launch.json (vscode debug)
2019-11-18 13:21:33 -05:00
Daniel Agar
82fac4a0a7
cmake NuttX linker print memory usage
2019-11-18 12:36:29 -05:00
David Sidrane
67f27eb26c
NuttX @ Offical release of 8.2
2019-11-17 04:06:49 -08:00
Daniel Agar
8ce2f30aa6
NuttX cmake improve dependencies between configure and runtime
...
- attempting to make the build slightly more robust to incomplete configures or other bad states.
2019-11-16 18:30:52 -05:00
Daniel Agar
df73a6667d
NuttX cmake improvements
...
- fix temporary Make.defs copy
- implement custom macros for COMPILE, COMPILEXX, ASSEMBLE, ARCHIVE to enable ccache properly (if available and enabled)
- fix NuttX mkdeps
- fix libapps race condition with context
2019-11-16 15:42:19 -05:00
David Sidrane
850821f47f
[REVISIT] Support upstream DSHOT Revist!
...
The Addition of PX4_ARCH_DCACHE_LINESIZE is fundamentally wrong.
It asserst that an STM32F4 has a cache and it does not.
This should be #if defined() on CONFIG_ARMV7M_DCACHE
2019-11-16 11:43:42 +01:00
Daniel Agar
2af262ed1d
NuttX cmake build wrapper thorough dependencies
2019-11-16 11:43:42 +01:00
Daniel Agar
99aae8b891
NuttX use toolchain math.h and avoid empty drivers/Kconfig
2019-11-16 11:43:42 +01:00
David Sidrane
b2f28c977d
durandal-v1 Nuttx Based PX4 bootloader
...
durandal bootloader:Run at 480 Mhz
durandal-v1:bootloader use VBUS detection
Add Durandal bootloader to build
2019-11-16 11:43:42 +01:00
David Sidrane
65a26ec060
nxp_fmuk66-v1:Port to NuttX 8.1+
2019-11-16 11:43:42 +01:00
David Sidrane
e847698c9f
PX4 System changes Supporting STM32H7
...
stm32:ToneAlarmInterfacePWM TIM15-TIM17 have a BDTR Register
common:board_crashdump Add H7 support
stm32/board_mcu_version:Support H7
PX4 ADC:Use 32 interface and resoution abstraction
Added PX4 stm32h7 ADC driver
stm32h7:adc fix ADC ready check
fmu: handle BOARD_HAS_PWM==5
cmake: improve error handling for NuttX olddefconfig failures
WorkQueueManager:Quiet loadmon stack warning
camera_trigger:GPIO support < 6 GPIO
Adjust stack sizes (under hw stack check)
PX4 System changes Supporting STM32H7 PX4IO Driver
aerotenna_ocpoc:ADC add px4_arch_adc_dn_fullcount
init.cmake:Track Upstream change needing Make.def at config time
PX4 System changes Supporting STM32H7
NuttX CMakeLists.txt Track upstream changes
Common board_crashdump add header and px4 config
NuttX simplify callinb make libapps
Use UINT32_MAX for error return
drivers:uavcannode NuttX chip is now hardware
drivers:uavcanesc NuttX chip is now hardware
px4io:Avoid Race on AP to PX4 IO upgrade
2019-11-16 11:43:42 +01:00
David Sidrane
36a75b79a4
uavcan:Changes to support Nuttx 7.31+
...
libuavcan:Update with Kinetis NuttX 8.1+ support
Traking master uavcan changes
2019-11-16 11:43:42 +01:00
David Sidrane
522ed2d99b
NuttX based PX4 bootloader
...
stm32h7 booloader:Obey VBUS input
stm32h7 booloader:Fully deinit systic
2019-11-16 11:43:42 +01:00
Beat Küng
78944a70c3
Upgrade NuttX to 8.2
...
Nuttx with PX4 contrib of bbsram fix
Nuttx 8.31+ with BBSRAM disable dcache
Nuttx 8.2-
2019-11-16 11:43:42 +01:00
TSC21
d4ddabdf52
SITL: adds 'iris_rtps' target
2019-11-13 18:24:11 +00:00
Daniel Agar
c5520cbaca
mpu9250: start building "NuttX" driver for Linux and QuRT
2019-11-13 09:21:02 -05:00
Daniel Agar
1c4e854f93
cmake don't build param "c" files and remove param defines
...
- these aren't actual source code
2019-11-11 10:25:42 -05:00
Beat Küng
5dff065ec5
uavcan: move to work queue and use MixingOutput
...
Main UAVCAN protocol handling and ESC updates run on the same thread/wq as
before. There are 2 WorkItems for separate scheduling of the 2, so that
ESC updates run in sync with actuator_control updates. UAVCAN is scheduled
at a fixed rate of 3ms (previously the poll timeout) and on each UAVCAN
bus event.
This leads to roughly the same behavior as before. CPU & RAM usage are
pretty much the same (tested on Pixhawk 4).
Testing done: Motors still work (with feedback), param changes and a
UAVCAN optical flow sensor.
2019-11-07 10:40:03 +01:00
Beat Küng
a203475489
BlockingList: fix unsafe getLockGuard() API
...
getLockGuard relies on copy elision to work correctly, which the compiler
is not required to do (only with C++17).
If no copy elision happens, the mutex ends up being unlocked twice, and the
CS is executed with the mutex unlocked.
The patch also ensures that the same pattern cannot be used again.
2019-11-05 12:14:20 +01:00
Daniel Agar
7f930f875e
Jenkins store SITL unit test results
2019-11-04 14:04:40 -05:00
Daniel Agar
69bec3ee62
defines.h delete obsolete PRIu64, PRId64, and offsetof
2019-11-03 11:50:15 -05:00
Daniel Agar
7bf9700426
NuttX: math.h drop extra math defines carried in PX4 defines.h
2019-11-03 10:30:00 -05:00
FlavioTonelli
7984c0c910
px4_work_queue: stack size rounded to page size on posix
2019-11-03 09:04:04 -05:00
Matthias Grob
933ff8d480
Remove duplicate EOF trailing newlines
...
because they can screw up git when merging branches.
2019-11-02 09:49:46 -04:00
David Sidrane
a3e2777208
NuttX/nuttx with SDIO fixes ( #13311 )
...
* NuttX/nuttx with SDIO fixes
2019-10-31 16:55:16 +01:00
Beat Küng
1dd6b6a505
stm32f3: add libs and stubs for F3 build (thiemar_s2740vc-v1)
2019-10-30 11:48:47 +01:00
Beat Küng
3b7c1b4ff1
src/drivers/boards: move to platforms/nuttx/src/px4/common
2019-10-30 11:48:47 +01:00
Beat Küng
be7ed5e388
src/drivers/boards/common/{stm32,kinetis}: move under platforms/nuttx/src/px4
2019-10-30 11:48:47 +01:00
Beat Küng
58e161347b
board_mcu_version: move to platforms/nuttx/src/px4
2019-10-30 11:48:47 +01:00
Beat Küng
e7519c9fa0
board_identity: move to platforms/nuttx/src
...
And fix a potential alignment issue in board_get_mfguid and
board_get_px4_guid.
2019-10-30 11:48:47 +01:00
Beat Küng
b30171ba8d
board_common.h: move under platforms/common
...
Also move board_determine_hw_info and board_gpio_init under platforms/nuttx
2019-10-30 11:48:47 +01:00
Beat Küng
3198610f85
src/platforms: move all headers to platforms/common/include/px4_platform_common
...
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
2019-10-30 11:48:47 +01:00
Daniel Agar
6f1f5e0325
clang-tidy: partially fix readability-redundant-declaration
2019-10-28 10:50:31 -04:00
Daniel Agar
a7f330075a
clang-tidy: enable hicpp-braces-around-statements and fix
2019-10-28 10:50:31 -04:00
Daniel Agar
4192414576
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
2019-10-28 10:50:31 -04:00
Daniel Agar
967446af4c
clang-tidy: enable readability-simplify-boolean-expr and fix
2019-10-27 19:19:07 -04:00
Daniel Agar
279df3b1b8
clang-tidy: partially fix hicpp-use-equals-delete
2019-10-27 19:19:07 -04:00
Daniel Agar
ae27dd60a6
Jenkins re-enable clang-tidy and update .clang-tidy
...
- device/Device: fix explicit constructor and uninitialized fields
- systemcmds/motor_test: update NULL to nullptr
2019-10-27 17:19:11 -04:00
Igor Mišić
f4ee9141cb
DShot: updated driver to use NuttX DMA functions ( #13233 )
2019-10-25 09:49:03 +02:00