Beat Küng
285ae608a5
commander: add support for DO_MOTOR_TEST
...
- add an optional timeout to test_motor
- enforce a timeout when receiving DO_MOTOR_TEST
- limitation: DO_MOTOR_TEST can only control the MAIN outputs
2019-10-24 09:27:29 +02:00
Matthias Grob
d60e1e2774
ControlMath: switch to gtest for unit tessting
2019-10-23 17:33:47 +02:00
Matthias Grob
ad60f6d786
PositionControl: make it self contained library
2019-10-23 17:33:47 +02:00
Daniel Agar
644c816a2a
generate_listener.py don't use message length
2019-10-22 09:19:18 +02:00
Beat Küng
0871802568
mixer_module: add support for test_motor (motor_test CLI command)
2019-10-21 09:42:08 +02:00
Daniel Agar
981f8d5d90
systemcmds/tests: IntrusiveQueue and List fix memory leaks
2019-10-20 10:46:44 -04:00
Daniel Agar
687a3a15c5
top: decrease priority below IMU sensor WQ threads
...
- otherwise top can potentially disrupt with sensor sampling
2019-10-19 13:44:24 -04:00
Timothy Scott
cf8f03f190
Changed listener to not busy-wait ( #13157 )
...
* Changed listener to not busy-wait
2019-10-17 11:29:36 +02:00
Matthias Grob
e843090383
Replace a lot of memset with {} initializers
2019-10-15 10:01:03 -04:00
Julian Oes
5e663b9321
Remove eigen leftovers
...
It looks like we're not using Eigen for a while now.
2019-10-07 12:04:50 +02:00
BazookaJoe1900
02e861b16e
enable silent compare of parameter ( #12850 )
...
Remove false errors after comparing parameters that doesn't exists.
as described in #12832
2019-10-07 09:50:11 +02:00
Daniel Agar
26364d44c9
px4_work_queue: command line status output and shutdown empty queues
...
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items
* WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
2019-10-02 12:23:17 -04:00
Daniel Agar
b6db872303
listener fix incorrect "never published" cases ( #13006 )
...
- fixes #12955
2019-09-25 10:46:13 +02:00
Matthias Grob
1ecbf8efd2
test_matrix: remove duplicate namespace accesses
2019-09-18 22:01:36 -04:00
Julian Kent
2d4ecab3b0
Remove unsafe access to .data() and _data in Matrix
2019-09-18 22:01:36 -04:00
Daniel Agar
df01eda550
systemcmds/tests: delete obsolete test_sensors
2019-09-10 16:37:33 -04:00
Julian Kent
a8fbe6bba2
Remove references to pow(x,0.5), use sqrt instead ( #12928 )
...
* Remove references to pow(x,0.5), use sqrt instead
* Update matrix library
2019-09-10 13:29:39 +02:00
Patrick Servello
47e668eb86
simulator and dumpfile fix minor resource leaks
...
* Certain conditional branches returned before closing the file handler.
2019-09-09 13:24:07 -04:00
Beat Küng
a2ebbe9066
pwm_limit: rename to output_limit
...
As there is nothing pwm-specific about it.
2019-08-31 10:05:00 -04:00
Daniel Agar
78ef8aab2d
STACK_MAIN increase default 1024 -> 2048
2019-08-30 19:11:51 -07:00
Beat Küng
43fdcd7876
px4_middleware: remove that header and move px4::init to px4_init.h
...
delete include:
for i in $(grep -rl 'px4_middleware.h' src platforms); do sed -i '/#include <px4_middleware.h/d' $i; done
2019-08-30 07:59:44 +02:00
Daniel Agar
2f10c315b5
listener print all instances by default
2019-08-26 16:07:41 +02:00
Julian Oes
a7c541d7e2
version: more tests to check tags with - prefix
2019-08-23 13:18:52 +02:00
Daniele Pettenuzzo
82ecf4d942
motor_ramp: set fmu in test mode and cleanup ( #11249 )
...
and restore pwm min after test
2019-08-15 09:42:07 +02:00
Daniel Agar
8f5b7de498
uORB::Subscription minor API cleanup
...
* the forceInit() method was combined with the existing subscribe()
* delete unused last_update()
2019-08-06 10:28:49 -04:00
David Sidrane
e8d874cf34
i2cdetect do not exceed 100Khz
2019-08-05 19:40:32 -04:00
Daniel Agar
e69398c09f
introduce uORB::PublicationQueued and transition most orb_advertise_queue usage
2019-08-04 10:08:09 -04:00
Daniel Agar
991669073e
Jenkins HIL run sd_bench and configure as multicopter
2019-08-03 11:22:31 -04:00
Beat Küng
72ddf3e0aa
tune_control: use orb queue advertisement consistently
2019-07-25 10:38:57 -04:00
Beat Küng
b71bae414b
param: fix potential nullptr dereferencing on param import
...
NuttX 7.28 seemed to handle this gracefully, but officially passing NULL
results in undefined behavior, and with 7.29 leads to a hardfault.
This happens on configs with flash-based params, on the first unsuccessful
import attempt.
2019-07-19 09:55:08 +02:00
Daniel Agar
15d1543f95
create systemcmds/i2cdetect tool to scan i2c bus
2019-07-06 10:28:16 -04:00
Daniel Agar
7f9415ba46
systemcmds/top: increase stack 200 bytes
...
- this is necessary after most boards increased CONFIG_MAX_TASKS 32 -> 64
2019-06-30 18:37:41 -04:00
Patrick Brünn
b402c9697d
hardfault_log: fix NULL terminator truncation
...
building "make omnibus_f4sd_default" with gcc 8.2.1 failes with:
hardfault_log.c:315:7: error: 'strncat' specified bound 30 equals destination size
gcc8 introduced -Wstringop-truncation, which will warn about NULL terminator
truncation.
This patch fixes two similar issues:
- strncpy() makes no sense if we want to copy without NULL terminator
- strncat() needs space to append the NULL terminator
fixes #12283
2019-06-17 08:15:34 +02:00
David Sidrane
f96c47ae1b
stm32f7 bootloader update support ( #11394 )
...
* micro_hal: F7 add flash
* micro_hal: F7 non up_progmem functions
* bl_update: Add F7 Support
2019-06-15 21:46:46 -04:00
Daniel Agar
a4a130fe53
tests free test containers in IntrusiveQueue and List
2019-06-13 10:47:27 -04:00
Daniel Agar
aee8f13289
List fix remove() and update testing
2019-06-13 10:47:27 -04:00
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