Beat Küng
f2092dd690
mixer_test: use snprintf instead of strncpy to fix compiler warning
...
compiler warning:
../../src/systemcmds/tests/test_mixer.cpp: In member function ‘bool MixerTest::loadAllTest()’:
../../src/systemcmds/tests/test_mixer.cpp:202:18: error: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 1 byte from a string of the same length [-Werror=stringop-truncation]
(void)strncpy(&buf[strlen(MIXER_ONBOARD_PATH)], "/", 1);
2018-05-09 07:59:46 +02:00
Daniel Agar
2e92484325
ecl update to latest master with separate libraries ( #9406 )
2018-05-03 23:48:09 -04:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Daniel Agar
d2abd53692
mixer lib remove custom constrain and cleanup includes
2018-04-12 00:14:50 -04:00
Daniel Agar
08cc963de3
px4iofirmware use std NAN instead of undefined 0.0f/0.0f
...
- closes #9277
2018-04-12 00:14:50 -04:00
Daniel Agar
5dc23def2a
move pressure altitude from baros to sensors module
2018-04-11 23:26:58 -04:00
Beat Küng
5eb7d8ec5f
flight tasks smoothing: refactor param_find -> Param
...
Plus some style fixes
2018-04-11 07:47:06 +02:00
Daniel Agar
45eb9cb518
fix typo PX4IO_MAX_MIXER_LENGHT -> PX4IO_MAX_MIXER_LENGTH
2018-04-09 02:23:26 -04:00
Daniel Agar
367a18f735
tests temporarily disable mavlink tests on nuttx
2018-04-09 02:23:26 -04:00
Dennis Mannhart
23b294b434
tests smoothz: fix fabsf and consider rest once previous velocity is zero
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5cfd93040f
ManualSmoothZ: move vel_sp_previous update into class
2018-04-05 07:30:12 +02:00
Dennis Mannhart
d44c406fb2
ManualSmoothingZ: unittests
2018-04-05 07:30:12 +02:00
Dennis Mannhart
5fbee9fce9
ControlMath tests
2018-04-05 07:30:12 +02:00
Daniel Agar
0baf3e39aa
tests clang-tidy ignore eadability-function-size
2018-03-26 23:16:55 -04:00
Daniel Agar
f46ea75c9d
mag declinataion test switch to ut_compare_float
2018-03-26 23:16:55 -04:00
Daniel Agar
d585218060
tests clang-tidy ignore readability-function-size
2018-03-26 23:16:55 -04:00
Paul Riseborough
2b87e5a790
tests: Test all data points for declination model
2018-03-26 23:16:55 -04:00
Daniel Agar
0814ac585e
declination test update values
...
- test values entered from https://www.ngdc.noaa.gov/geomag-web/
2018-03-26 23:16:55 -04:00
Daniel Agar
29b3950747
move geo and geo_lookup to PX4/ecl
2018-03-26 23:16:55 -04:00
Simone Guscetti
ee0ae079ff
tests: test_hrt modernize NULL with nullptr
2018-03-19 14:15:52 +01:00
Simone Guscetti
e140c37fe3
systemcmds: tests update to cpp file for test_hrc
2018-03-19 14:15:52 +01:00
Daniel Agar
59fd22be1b
parameters import/export test
2018-01-30 09:17:56 -05:00
Julien Lecoeur
89642a9203
Move src/module/systemlib/mixer to src/lib/mixer
2017-11-15 09:56:10 +01:00
garfieldG
cddea6f4b3
Fixed version firmware type ( #8250 )
...
* Fixed the version tag to number and version tag to vendor version number to return dev version in case of any local modifications or in case there's a dash before firmware type in tags that support vendor version.
2017-11-11 20:04:16 -05:00
acfloria
3929afd617
Fix format in test_mixer.cpp
2017-10-12 12:03:22 +02:00
acfloria
9d2da611f6
Fix mixer issue with undefined return in callback and non value initialized variables.
2017-10-12 12:03:22 +02:00
Dario Röthlisberger
3edc5942e4
versioning: fix style
2017-10-09 14:41:58 +02:00
Dario Röthlisberger
e3b8c0512e
versioning: refactor unit tests
...
Use one function which tests flight and vendor version tag parsing.
2017-10-09 14:41:58 +02:00
Dario Röthlisberger
3dd4454a87
version: include FIRMWARE_TYPE in vendor version
2017-10-09 14:41:58 +02:00
Dario Röthlisberger
bb644ee087
unittests: add versioning test
2017-10-09 14:41:58 +02:00
Daniel Agar
28a9e32753
test perf use stdout, not stdin
2017-09-28 16:50:47 +01:00
Daniel Agar
4e5b223a08
hrt test decrease time
2017-09-28 16:50:47 +01:00
Daniel Agar
af9690cf08
add simple posix tests to SITL
2017-09-28 16:50:47 +01:00
Daniel Agar
26f00609ac
multirotor_motor_limits only publish for MC
2017-09-19 02:25:30 +01:00
Daniel Agar
a031552756
systemcmds remove extra semicolons
2017-09-16 21:29:52 +01:00
Daniel Agar
9b5fe8c476
ignore -Wsign-compare per module
2017-09-07 10:27:36 +02:00
Daniel Agar
a02caff1bc
unit_test inline implementation and remove module build
2017-08-23 08:06:55 +02:00
Peter Duerr
b845edba64
Yet another erroneous call to px4_close instead of close
...
* As indicated by @bkueng
2017-08-07 22:05:17 +02:00
Peter Duerr
6e808ad0a6
Fix additional erroneous px4_close call
...
* As indicated by @bkueng
2017-08-07 22:05:17 +02:00
Peter Duerr
73ef772537
Fix erroneous use of px4_close
...
* Close handle opened with `open` with `close` as indicated by @bkueng
2017-08-07 22:05:17 +02:00
Peter Duerr
5be23060e7
Fix resource leaks identified by cppcheck
...
* Where possible rearrange error checks to avoid branching
* Otherwise add missing `fclose`, `close`, `px4_close` calls before return
2017-08-07 22:05:17 +02:00
Beat Küng
5a2723ab9c
test_mixer.cpp: remove bogus comments
2017-07-21 19:59:45 +02:00
David Sidrane
4349f49610
PX4 System:Expunge the nuttx adc structure from the system
...
This PR is preliminary ground work for FMUv5.
PX4 does not use the NuttX adc driver. But used the same format
for the data returned by the nuttx ADC driver.
There was a fixme:in src/platforms/px4_adc.h "this needs to be
a px4_adc_msg_s type" With this PR the need for
src/platforms/px4_adc.h goes away as the driver drv_adc.h now
describes the px4_adc_msg_t.
2017-07-17 22:28:29 +02:00
José Roberto de Souza
ac7127ff0f
systemcmds: dataman: Check for errors in tasks
2017-07-13 15:21:26 +02:00
José Roberto de Souza
10f54e718e
modules: dataman: Optimize memory usage
...
Use the size of each item type instead of the biggest one.
In AeroFC that runs is constrained mode it was using 7860 bytes
and now it uses 6930 bytes almost 1KB less.
2017-07-13 15:21:26 +02:00
Julien Lecoeur
fc860140f1
Fix internal compiler error with GCC 7
...
Here is the error message:
PX4/Firmware/src/systemcmds/tests/test_matrix.cpp:641:1: internal compiler error: in trunc_int_for_mode, at explow.c:55
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
2017-06-26 15:50:44 +02:00
Daniel Agar
4937449890
move parameter unittest into systemcmds
2017-06-12 12:18:53 -04:00
Daniel Agar
0d0cbd8243
clang-tidy ignore cert-flp30-c only in tests
2017-06-02 19:35:18 -04:00
Daniel Agar
5d626bd940
clang-tidy remove redundant init
2017-06-02 19:35:18 -04:00
Daniel Agar
4b8bedef48
avoid double promotions
2017-04-01 20:19:28 +02:00