Guilherme Lawless
47a191489e
cmake: sitl_gazebo build use memory information from the system to estimate the parallel jobs
...
Using cmake_host_system_information, grabs AVAILABLE_PHYSICAL_MEMORY and adds another job for every 1.5GB of available memory.
This is tested on a single system with 16 logical cores and 16GB RAM (~11.5GB available, reported correctly by cmake).
2021-11-07 15:37:48 -05:00
David Sidrane
96101a9c11
NuttX backports of imxrt dcache fixes to support WB & USB
2021-11-05 13:50:02 -04:00
David Sidrane
e2b4e435a9
Build system:Board level control of no-unaligned-access
2021-11-05 13:50:02 -04:00
David Sidrane
af9f8f08c6
NuttX PX4 build - capture log in VERBOSE=True|1
2021-11-05 13:50:02 -04:00
Daniel Agar
9c15be22d6
mc_autotune_attitude_control: add new MC_AT_EN parameter to enable
...
- only enabled by default on boards that aren't memory constrained
2021-11-05 09:52:07 -04:00
Vatsal Asitkumar Joshi
ea1ae73526
Support for Raspberry PI RP2040 MCU ( #18083 )
2021-11-03 12:14:30 -04:00
David Sidrane
38e2e6a01f
Use NuttX MPU Reset ( #18283 )
...
* NuttX with MPU reset backports
* Use NuttX MPU reset
2021-10-25 18:05:31 -04:00
Landon Haugh
24cd0c6fa3
Enablement of PX4 SPI driver for UCANS32K146
2021-10-25 08:36:54 -07:00
Daniel Agar
17328bef69
Jenkins attach GDB and print back trace on failure
2021-10-21 14:04:33 -04:00
Beat Küng
c0f75b1c79
dshot: add missing '#pragma GCC diagnostic push'
2021-10-20 08:11:07 +02:00
Beat Küng
8a2b310b83
topic_listener: avoid code generation, use existing metadata at runtime
...
This reduces flash size for v5 by ~110KB, the topic listener now only adds
about 1.2KB.
2021-10-20 08:10:05 +02:00
Beat Küng
4c73ac3805
uorb: use single byte for internal types in o_fields metadata
...
Reduces flash usage by ~9KB.
2021-10-20 08:10:05 +02:00
mcsauder
21163d859e
Whitespace cleanup.
2021-10-19 13:29:26 -04:00
Beat Küng
da1df5352c
fix pwm: only update oneshot timers owned by the current pwm_out instance
...
This fixes the case where oneshot was enabled with multi-instance pwm_out,
triggering oneshot updates too close to each other and as a result could
lead to spinning motors while disarmed.
2021-10-18 18:45:19 -04:00
Beat Küng
d9bf03b2dc
holybro/durandal-v1: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
0ab4a24de8
px4/fmu-v5: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
15daded6b0
refactor output_limit: split output_limit_calc_single into separate function
2021-10-18 18:45:19 -04:00
AuroraRAS
62dd38fe35
Prepare for Android NDK build
...
Modify CMakeList.txt prepare for Android NDK build
Signed-off-by: AuroraRAS <chplee@gmail.com>
2021-10-18 14:55:56 -04:00
Daniel Agar
7de00469a6
platforms: nuttx px4_init fix USB serial mavlink autodetect
2021-10-13 16:34:45 -04:00
Jaeyoung-Lim
e2f048f608
Add sitl glider model
...
Add airframe configs for SITL glider model
This commit adds an airframe config for a glider model
2021-10-10 12:33:25 -04:00
bresch
21b1f090e6
SITL: add typhoon_h480_ctrlalloc target
2021-10-08 09:35:40 +02:00
Peter van der Perk
bfa87fdac7
Kconfig fix wrong nuttx submodule commit
2021-10-07 10:09:01 -04:00
Peter van der Perk
60790f7112
Backport boards: modalai_fc-v1 update default.cmake ( #18202 )
2021-10-07 10:09:01 -04:00
Daniel Agar
beb358a344
px4_work_queue: adjust status formatting to accommodate longer names (eg mc_autotune_attitude_control)
2021-10-05 18:09:00 -04:00
Daniel Agar
896ad3a627
cmake: fix find_program ozone
2021-10-04 18:27:50 -04:00
Daniel Agar
6d78054f50
mavlink USB auto start/stop on boards with VBUS
...
- no longer start sercon or mavlink usb by default
- on USB connection (VBUS) monitor serial USB at low rate and start Mavlink if there's a HEARTBEAT or nshterm on 3 consecutive carriage returns
- the mavlink USB instance is automatically stopped and serdis executed if USB is disconnected
- skipping Mavlink USB (and sercon) saves a considerable amount of memory on older boards
2021-10-03 15:32:54 -04:00
bresch
5874b1f87c
mc atune: add module to all targets
...
- adjust flash constrianed targets to fit
2021-10-02 18:12:05 -04:00
David Sidrane
7c9903f610
stm32h7:px4io_serial use TRBUFF
...
- includes NuttX with TRBUFF backports
2021-09-29 23:55:00 -04:00
David Sidrane
f56701e72f
micro_hal:Remove px4_savepanic on arch without hardfault logging
2021-09-29 23:51:25 -04:00
David Sidrane
cb47203a9e
NuttX with deglitched GPIO backports
2021-09-29 23:50:11 -04:00
David Sidrane
2abbf791b3
NuttX with deglitched GPIO backports
2021-09-29 14:37:17 -04:00
Peter van der Perk
360c3781f3
UCANS32K146-01 Add CAN tranceiver self test
2021-09-29 09:36:14 -07:00
Jukka Laitinen
3db76d88fe
Add crypto key generation functions
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-09-27 17:45:07 +02:00
Jukka Laitinen
4c6779812d
Add keystore_put_key interface function for storing keys permanently
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-09-27 17:45:07 +02:00
Jukka Laitinen
fc2668cba1
Add encryption function for the crypto_backend and px4_crypto
...
Take into use libtomcrypt library to add RSA and some other algorithms
for SW ecnryption use case
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-09-27 17:45:07 +02:00
Jukka Laitinen
be4f7cabf9
Add compilation of nuttx_crypto
...
NuttX has lots of usable functionality for crypto, such as rng with entropy pool
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-09-27 17:45:07 +02:00
Jukka Laitinen
d36a91ceaf
Add generic px4 interface for crypto features
...
Add common functions, implemented for nuttx, and link to architecture specific libraries
Make a separate library to wrap nuttx random number generator as "os_random".
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-09-27 17:45:07 +02:00
Jukka Laitinen
aa61bc4942
Add functions for initializing empty crypto backend handles
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-09-27 17:45:07 +02:00
Daniel Agar
9a3fa6199b
uorb top report total publication rate
2021-09-26 12:29:11 -04:00
Daniel Agar
089c962d92
px4io: moving mixing to FMU side
...
Using mixers on the IO side had a remote benefit of being able to
override all control surfaces with a radio remote on a fixed wing.
This ended up not being used that much and since the original design
10 years ago (2011) we have been able to convince ourselves that the
overall system stability is at a level where this marginal benefit,
which is not present on multicopters, is not worth the hazzle.
Co-authored-by: Beat Küng <beat-kueng@gmx.net>
Co-authored-by: Daniel Agar <daniel@agar.ca>
2021-09-25 19:15:05 -04:00
Beat Küng
e73172b537
hrt: remove hrt_elapsed_time_atomic
...
There's no protection on posix
2021-09-23 09:23:08 +02:00
Beat Küng
810d2e9497
ModuleParams: remove parent in destructor
...
This allows for dynamic deletion of children objects (in most cases this
is not used).
Uses ~100B memory.
2021-09-11 15:07:49 -04:00
Jukka Laitinen
28dbd8dc1d
NuttX at 10.1.0+
...
NuttX backport fixing ARM protected build
2021-09-09 04:43:22 -07:00
Beat Küng
c5c80e31b6
boards: remove DIRECT_INPUT_TIMER_CHANNELS from board_config.h
2021-09-08 16:10:24 -04:00
Beat Küng
062dd28f4d
camera_capture: use up_input_capture_set directly
...
It reserves the channel and pwm_out will not use it
2021-09-08 16:10:24 -04:00
Beat Küng
78b5cdae4c
s32k1xx: io_timer: reserve pins & timers on first use
2021-09-08 16:10:24 -04:00
Beat Küng
ab828b8e94
kinetis: io_timer: reserve pins & timers on first use
2021-09-08 16:10:24 -04:00
Beat Küng
7d9a3bf29f
imxrt: io_timer: reserve pins & timers on first use
2021-09-08 16:10:24 -04:00
Beat Küng
9a74c6f3c6
stm32: io_timer: lock around io_timer_allocate_channel and io_timer_get_channel_mode
...
This is to avoid potential race conditions during startup.
All startup code runs sequentially atm, so this is just for robustness
for later (e.g. concurrent pwm_out and dshot start).
2021-09-08 16:10:24 -04:00
Beat Küng
847bd120fa
io_timer: reserve pins & timers on first use
...
This allows modules to do a first-come-first-serve pin/timer reservation
on bootup.
E.g. camera trigger reserves any of the pins, and then PWM/DShot output
will just use the rest of the available pins.
2021-09-08 16:10:24 -04:00