Daniel Agar
1623de8bd0
IntrusiveQueue add remove method, iterators, and update test
2019-06-13 10:47:27 -04:00
Daniel Agar
910e938943
tune_control move usage() to bottom of file
2019-06-08 03:23:50 -07:00
Daniel Agar
cfa58dfc36
led_control move usage() to bottom of file
2019-06-08 03:23:50 -07:00
Beat Küng
5c715978e8
param compare/greater: do not print 'parameter not found' message
...
Reduces clutter in the boot output (now that we have it in the log).
On omnibus for example we see:
ERROR [param] Parameter SENS_EN_BATT not found
ERROR [param] Parameter SENS_EN_LL40LS not found
ERROR [param] Parameter SENS_EN_LL40LS not found
ERROR [param] Parameter SENS_EN_MB12XX not found
ERROR [param] Parameter SENS_EN_PGA460 not found
ERROR [param] Parameter SENS_EN_SF1XX not found
ERROR [param] Parameter SENS_EN_TRANGER not found
2019-06-06 09:16:49 -04:00
Julian Oes
6f9598c76a
topic_listener: document how to exit
...
This was left out when the feature was added.
2019-06-04 09:24:00 -04:00
Beat Küng
d947818654
console: add simple dmesg functionality (enable only on v5)
2019-06-04 11:57:54 +02:00
Daniel Agar
2c63e335e9
uORB::Subscription subscribe directly to uORB device node object
2019-06-03 17:06:21 -04:00
Daniel Agar
21c791e959
listener exit with ctrl-c, escape, or q
2019-05-30 10:53:06 +02:00
Julian Oes
7b9562e3b1
hysteresis: move out of systemlib, move to gtest
...
This moves the hysteresis test out of the systemlib and makes it its own
small library. Since it still depends on hrt_absolute_time this does not
link yet. My attempt to get all link dependencies together failed.
2019-05-27 09:57:50 +02:00
Daniel Agar
162405479b
device drivers lib add linux spi support
2019-05-20 12:18:56 -04:00
Julian Kent
911df49045
increase stacks in drivers identified by stackcheck builds
2019-04-09 17:20:50 +02:00
Daniel Agar
b35d048566
cmake enable -Wcast-align and disable per module
2019-03-16 11:47:15 -04:00
Daniel Agar
edad4c40c3
containers add IntrusiveQueue and testing
2019-03-14 09:22:19 +01:00
Daniel Agar
e2bf4b1894
List container improvements and testing
...
- support range based for loops
- add remove() method to remove a node
- add clear() to empty entire list and delete nodes
- add empty() helper
2019-03-01 21:01:04 -05:00
Daniel Agar
e4b3c8bcc6
tests enable bezier and search_min
2019-02-22 16:23:57 -05:00
Daniel Agar
184aa2861a
PX4_ISFINITE use builtin everywhere
2019-02-21 14:56:08 -05:00
mcsauder
31f23c1e76
Rename tune_control_s strength to volume to match Nuttx and Linux standard nomenclature for audio (loudness) control.
2019-02-19 10:07:53 +01:00
mcsauder
a6d186dfed
Rename Tunes::get_next_tune() to Tunes::get_next_note().
2019-02-19 08:00:11 +01:00
mcsauder
2fa70fca80
Added audio tune signals for unit tests passing and failing.
2019-02-10 17:47:16 -05:00
mcsauder
0032df3e87
Update the test_tone() unit test to use orb_advertise() and orb_publish() instead of IOCTL() and alphabetize tests_main.h.
2019-02-10 17:47:16 -05:00
mcsauder
6dc840ac6a
Break test_tone and test_ppm out of the test_hrt.cpp file into their own respective files.
2019-02-10 17:47:16 -05:00
David Sidrane
c6edf41a74
test time: Fixed bad assumption about RAND_MAX ( #11414 )
...
usleep range was up to 2147 Seconds
Per open group: The rand() function shall compute a
sequence of pseudo-random integers in the range
[0, {RAND_MAX}] with a period of at least 2^32
{RAND_MAX} Maximum value returned by rand();
at least 32767.
/* Maximum value returned by rand(). Must be a minimum of 32767. */
#define RAND_MAX INT_MAX
and
#define INT_MAX 2147483647
2019-02-08 14:39:18 -05:00
Beat Küng
d8b013355c
PRINT_MODULE_USAGE_PARAM_{INT,FLOAT}: add support to ignore the default value
2019-02-08 09:29:46 +01:00
mcsauder
9d67bbc328
Standardized/updated copyright file headers in the src/systemcmds/tests/ directory.
2019-01-30 14:25:18 -05:00
mcsauder
dc5f18bdcd
ToneAlarm class refactoring to implement an interface for hardware specific methods and a single ToneAlarm class.
2019-01-28 18:58:04 -08:00
David Sidrane
f00d633196
flashfs:Upstream renamed up_progmem_erasepage to up_progmem_eraseblock
2019-01-25 06:32:37 -08:00
Daniel Agar
2ffb49b734
delete px4_includes.h header and update boards/ to use syslog
2019-01-23 18:25:18 -05:00
Lorenz Meier
502cd987ee
SD Bench: No need for atomic timing
...
This leads to less jitter in the benchmark
2019-01-22 23:52:57 +01:00
Lorenz Meier
01b7a11255
SD bench: Retain atomic operation.;
2019-01-22 23:52:57 +01:00
Lorenz Meier
f21bc89a90
Unit tests: Retain atomic operation
...
This ensures we get absolutely accurate timing.
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
Daniel Agar
572d1cefe8
test_mixer remove <limits> usage
...
- <limits> isn't available in the NuttX c++ standard library
2019-01-21 09:27:10 -05:00
Daniel Agar
658d734068
param add status
2019-01-18 11:50:37 -05:00
Daniel Agar
84724d5e1d
param show default only active parameters
...
- add -a option to display all possible system parameters
2019-01-18 11:50:37 -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
Beat Küng
5b4a77a67b
params: add possibility to access files if flash-based params are enabled
...
- the flash-backend is selected by specifying nullptr as file or -1 as fd
- the default file is nullptr, and thus the FLASH
- 'param select' has no effect, FLASH is always the default
Thus there should be no functional change to existing setups.
2018-12-23 15:49:37 -05:00
Julian Oes
d75389b2e4
platforms: consolidate latency_buckets
...
These symbols were duplicated all over the place.
2018-12-22 10:32:18 +01:00
Julian Oes
f0ce300744
platforms: move latency_buckets to perf.c
2018-12-22 10:32:18 +01:00
Julian Oes
d70b0f1c8c
Replace sleep with px4_sleep
...
This is another step to isolate time from the system.
2018-12-22 10:32:18 +01:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Beat Küng
cf66656258
mixer multirotor: add unit-tests
...
To run:
cd src/lib/mixer
make tests
This will validate the C++ implementation by taking the python
implementation as ground-truth. It runs through various actuator control
command values for all airmode variations and several mixer types.
The python script also allows to prototype new mixer algorithms.
It is not integrated into the existing build system, because it's easier
to use that way, with less dependencies, and faster testing workflow.
It could however be a bit more integrated.
Reference: https://github.com/Auterion/Flight_Control_Prototyping_Scripts/tree/master/control_allocation
2018-12-13 09:50:07 +01:00
Beat Küng
c659d2bcc2
mixer: minor refactoring to reduce header include dependencies
...
- avoid including <px4_defines.h> from the math headers
- avoid driver include <drivers/drv_mixer.h> from the mixer
2018-12-13 09:50:07 +01:00
Hamish Willee
11364c0e01
Improve forcefail/terminatefail docs
2018-12-10 15:30:53 -08:00
Daniel Agar
d4e06e517a
delete drv_gpio.h, modules/gpio_led, and fmu GPIO ioctls
2018-12-03 16:30:39 +01:00
Daniel Agar
93802c2710
hysteresis test increase time on cygwin ( #10958 )
2018-12-03 09:39:43 -05:00
Daniel Agar
fecdfe5fbc
move posix/tests/hrt_test to systemcmds/tests/hrt_test
2018-11-26 14:40:14 -08:00
Daniel Agar
3e0a3559a9
cmake use standard mechanisms for settings flags
2018-11-26 14:40:14 -08:00
Daniel Agar
ec4c9da253
remove BOARD_NAME from board_config.h and set automatically
2018-11-26 14:40:14 -08:00
Daniel Agar
abb3817d31
boards new split VENDOR_MODEL naming convention
2018-11-26 14:40:14 -08:00
Daniel Agar
f692ad04d0
boards organization
2018-11-26 14:40:14 -08:00