Daniel Agar
071f159794
PX4 work queue: extend to UARTs
5 years ago
Daniel Agar
a7fbaefd83
NuttX cmake small debug helper improvements
5 years ago
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
5 years ago
Daniel Agar
bc182e94e6
sensors split rc_update into new standalone module
5 years ago
Daniel Agar
2811307293
px4_work_queue: increase wq:hp_default stack 1500->1800 bytes (found by stackcheck)
5 years ago
David Sidrane
bbd37ada41
holybro_durandal-v1: update cdcacm product id
5 years ago
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.
5 years ago
Beat Küng
1371887578
board config: add define for adc voltage scaling
5 years ago
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).
5 years ago
Daniel Agar
84fe64b1c2
create new multicopter rate controller module (mc_rate_control) split out of mc_att_control
5 years ago
Daniel Agar
1c4a8e7c11
cmake NuttX fix generated launch.json (vscode debug)
5 years ago
Daniel Agar
82fac4a0a7
cmake NuttX linker print memory usage
5 years ago
David Sidrane
67f27eb26c
NuttX @ Offical release of 8.2
5 years ago
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.
5 years ago
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
5 years ago
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
5 years ago
Daniel Agar
2af262ed1d
NuttX cmake build wrapper thorough dependencies
5 years ago
Daniel Agar
99aae8b891
NuttX use toolchain math.h and avoid empty drivers/Kconfig
5 years ago
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
5 years ago
David Sidrane
65a26ec060
nxp_fmuk66-v1:Port to NuttX 8.1+
5 years ago
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
5 years ago
David Sidrane
36a75b79a4
uavcan:Changes to support Nuttx 7.31+
...
libuavcan:Update with Kinetis NuttX 8.1+ support
Traking master uavcan changes
5 years ago
David Sidrane
522ed2d99b
NuttX based PX4 bootloader
...
stm32h7 booloader:Obey VBUS input
stm32h7 booloader:Fully deinit systic
5 years ago
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-
5 years ago
TSC21
d4ddabdf52
SITL: adds 'iris_rtps' target
5 years ago
Daniel Agar
c5520cbaca
mpu9250: start building "NuttX" driver for Linux and QuRT
5 years ago
Daniel Agar
1c4e854f93
cmake don't build param "c" files and remove param defines
...
- these aren't actual source code
5 years ago
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.
5 years ago
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.
5 years ago
Daniel Agar
7f930f875e
Jenkins store SITL unit test results
5 years ago
Daniel Agar
69bec3ee62
defines.h delete obsolete PRIu64, PRId64, and offsetof
5 years ago
Daniel Agar
7bf9700426
NuttX: math.h drop extra math defines carried in PX4 defines.h
5 years ago
FlavioTonelli
7984c0c910
px4_work_queue: stack size rounded to page size on posix
5 years ago
Matthias Grob
933ff8d480
Remove duplicate EOF trailing newlines
...
because they can screw up git when merging branches.
5 years ago
David Sidrane
a3e2777208
NuttX/nuttx with SDIO fixes ( #13311 )
...
* NuttX/nuttx with SDIO fixes
5 years ago
Beat Küng
1dd6b6a505
stm32f3: add libs and stubs for F3 build (thiemar_s2740vc-v1)
5 years ago
Beat Küng
3b7c1b4ff1
src/drivers/boards: move to platforms/nuttx/src/px4/common
5 years ago
Beat Küng
be7ed5e388
src/drivers/boards/common/{stm32,kinetis}: move under platforms/nuttx/src/px4
5 years ago
Beat Küng
58e161347b
board_mcu_version: move to platforms/nuttx/src/px4
5 years ago
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.
5 years ago
Beat Küng
b30171ba8d
board_common.h: move under platforms/common
...
Also move board_determine_hw_info and board_gpio_init under platforms/nuttx
5 years ago
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)
5 years ago
Daniel Agar
6f1f5e0325
clang-tidy: partially fix readability-redundant-declaration
5 years ago
Daniel Agar
a7f330075a
clang-tidy: enable hicpp-braces-around-statements and fix
5 years ago
Daniel Agar
4192414576
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
5 years ago
Daniel Agar
967446af4c
clang-tidy: enable readability-simplify-boolean-expr and fix
5 years ago
Daniel Agar
279df3b1b8
clang-tidy: partially fix hicpp-use-equals-delete
5 years ago
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
5 years ago
Igor Mišić
f4ee9141cb
DShot: updated driver to use NuttX DMA functions ( #13233 )
5 years ago
Matthias Grob
d60e1e2774
ControlMath: switch to gtest for unit tessting
5 years ago