Beat Küng
f256d03364
param command: remove param_save_default() calls
...
Not needed anymore due to autosave
2017-04-06 11:49:03 +02:00
Beat Küng
a5cdff06d5
param: implement rate-limited autosave
...
- add a saving delay of 300ms
- save at most once every 2 seconds
2017-04-06 11:49:03 +02:00
Mohammed Kabir
d50a0c4323
pwm : fix code style
2017-04-02 21:52:18 +02:00
Mohammed Kabir
f915896413
pwm : run update only on NuttX
2017-04-02 21:52:18 +02:00
Lorenz Meier
1adbf37cbe
PWM command: Do not use return value of read
2017-04-02 21:52:18 +02:00
Daniel Agar
4b8bedef48
avoid double promotions
2017-04-01 20:19:28 +02:00
Beat Küng
4a7e02c640
systemlib/visibility.h: remove this file
...
This is duplicated in src/include/visibility and is directly included via
compiler flag '-include'
2017-03-29 23:02:09 +02:00
David Sidrane
5abdb8fbe9
Fixed spelling - onshot->oneshot
2017-03-23 08:28:15 +01:00
David Sidrane
8984b441a0
pwm test uses Onshot API
...
At at a period greater than the the max Oneshot pulse width
Trigger all timer's channels in Oneshot mode to fire the
oneshots with updated values.
2017-03-23 08:28:15 +01:00
David Sidrane
0ce854ad55
Support onshot command
2017-03-23 08:28:15 +01:00
David Sidrane
6bc0420137
pwm warnx->PX4_WARN
2017-03-23 08:28:15 +01:00
David Sidrane
cdd961d2b9
pwm remove arch dependancy
2017-03-23 08:28:15 +01:00
David Sidrane
d92cb75b26
pwm use px4_getops
2017-03-23 08:28:15 +01:00
Mark Whitehorn
2d5588ae02
simplify oneshot mode selection; use zero PWM rate as indicator
...
cleanup and remove unused (new) params
2017-03-23 08:28:15 +01:00
Mark Whitehorn
aa9fbbedd5
add oneshot mode capability
...
change fmu to task
increase fmu_servo task priority to max and enable true oneshot
use lowest FMU priority which minimizes jitter
constrain oneshot updates to control group 0 events
2017-03-23 08:28:15 +01:00
Pavel Kirienko
2b2c307eac
Performance audit (intentionally duplicates #6829 ) ( #6847 )
...
* UAVCAN ESC output: removing ESC output channels from published message that are always zero. This allows the UAVCAN stack to always transfer only the minimum number of output values, avoiding redundant zeroes and the associated increase in bus load and CPU time
* Added a separate mixer file for CAN quadrotor
* Sampling profiler improvements
* PMSP: Output more endpoints
* Matrix update
* libc usage workaround
* Removed UAVCAN perfcounters
* Matrix submodule update
2017-03-18 04:16:20 -10:00
David Sidrane
c20b85e6ad
Revert "UAVCAN performance audit ( #6829 )" ( #6846 )
...
This reverts commit 21e04c9f7a .
2017-03-18 04:04:43 -10:00
Pavel Kirienko
21e04c9f7a
UAVCAN performance audit ( #6829 )
...
* UAVCAN ESC output: removing ESC output channels from published message that are always zero. This allows the UAVCAN stack to always transfer only the minimum number of output values, avoiding redundant zeroes and the associated increase in bus load and CPU time
* Added a separate mixer file for CAN quadrotor
* Sampling profiler improvements
* PMSP: Output more endpoints
* Matrix update
* libc usage workaround
* Removed UAVCAN perfcounters
2017-03-18 03:47:09 -10:00
Beat Küng
b4290b6b52
params: make param_t uint16_t on NuttX
...
param_t is only used as an offset and we have <1000 params, so an uint16_t
is enough.
This saves roughly 1KB of RAM. We only do that on NuttX because normal
integers have better performance in general.
Previously on amd64, this was even 64bits because it was an uintptr_t.
2017-03-14 21:30:53 +01:00
Beat Küng
2cf849a520
led_control: fix errors by clang-tidy
2017-03-12 00:08:35 +01:00
Beat Küng
f22fc1c543
led: add breathe mode
2017-03-12 00:08:35 +01:00
Beat Küng
46fef30526
systemcmds: add new command led_control
...
This can be used to test & control the new uorb-based led backend.
2017-03-12 00:08:35 +01:00
Beat Küng
b0439836f6
refactor drv_led.h: rename to drv_board_led.h
...
This makes it clear that it's used to control the board LED's, not external
LED's.
2017-03-12 00:08:35 +01:00
Lorenz Meier
e18fe0a8a8
Port PWM command to POSIX
2017-02-25 11:07:25 +01:00
Beat Küng
3cc1c9d0a9
param command: warnx -> PX4_{WARN,ERR}
2017-02-25 11:02:15 +01:00
Beat Küng
a0f00f84f3
param show command: add -c to show only changed, do case insensitive comparison
2017-02-17 11:27:08 +01:00
Beat Küng
42967df63f
param command: use param_* calls even if flash-based params are enabled
...
This will ensure proper locking.
2017-02-17 11:27:08 +01:00
Daniel Agar
9bc5da6d2d
update matrix and fix test_matrix ( #6524 )
2017-02-16 00:31:06 -05:00
Daniel Agar
1bbca3bf1d
test_dataman add to SITL with minor updates
2017-02-15 22:29:24 -05:00
David Sidrane
7e425c8ff2
Disable bl_upload command on non F4 tartgets
...
Upstream nuttx needs to have the flash programing support added.
2017-02-13 21:37:38 +01:00
David Sidrane
94450eb43a
Use PX4_FLASH_BASE from micro HAL
2017-02-13 21:37:38 +01:00
David Sidrane
c685cdbfce
Use the NuttXs progmem api to progrem flash
2017-02-12 08:57:29 +01:00
David Sidrane
53df80881a
ver uses simpler common board indentity api and displays mfguid
2017-02-04 22:27:04 +01:00
Stephan Brown
54cc212d46
test_autodeclination: Add world endpoints to test.
2017-02-04 08:52:04 +01:00
Stephan Brown
614853b023
test_autodeclination: Update mag declination test value.
2017-02-04 08:52:04 +01:00
Daniel Agar
6f05fec335
clang-tidy performance-unnecessary-copy-initialization
2017-02-01 22:15:50 -05:00
Daniel Agar
37a2e331c4
clang-tidy test_bson memcmp check return
2017-02-01 22:15:50 -05:00
Daniel Agar
6631e72d6f
clang-tidy modernize-redundant-void-arg
2017-02-01 22:15:50 -05:00
Daniel Agar
e927f3e040
clang-tidy modernize-use-nullptr
2017-02-01 22:15:50 -05:00
Daniel Agar
a14c5b29ea
astyle src/systemcmds/hardfault_log
2017-01-29 01:18:32 +01:00
Beat Küng
91416fc49a
ver.c: fix hwcmp to match exact string
...
Previously for example 'ver hwcmp PX4FMU_V4PRO' matched on PX4FMU_V4
hardware too.
2017-01-28 15:18:35 +01:00
David Sidrane
4be19b26b0
ver uses common board api for mcu_version
2017-01-26 08:39:12 +01:00
David Sidrane
d0ebc183c9
ver uses common board api for uuid
2017-01-25 07:43:11 +01:00
David Sidrane
93bc8f6467
Combined ifdess and made positive logic
...
We still allow CONFIG_ARCH_BOARD_SITL in the code base, but
use positive logic and less #ifdefs
2017-01-21 11:45:36 +01:00
David Sidrane
5d263776f2
Placed dependancy on BOARD_USES_PX4IO not path (PX4IO_DEVICE_PATH)
...
Code was conditionaly included based on #define PX4IO_DEVICE_PATH
in drivers/drv_gpio.h depanedent on board #ifdef CONFIG_ARCH_BOARDxxxx
Now that dependancy comes from board_common.h as BOARD_USES_PX4IO defined
when a board config provides PX4IO_SERIAL_DEVICE.
2017-01-21 11:45:36 +01:00
David Sidrane
1d4ae4c683
Allows a board config to override the number of partitions and names
...
A board_config may define BOARD_HAS_MTD_PARTITION_OVERRIDE to
uses it's own number of partitions and names.
If a BOARD_HAS_MTD_PARTITION_OVERRIDE is not defined
the hardcoded original values of fs/mtd_params &
/fs/mtd_waypoints are used.
on an mtd device.
2017-01-20 22:55:04 +01:00
David Sidrane
487fbdf009
Use BOARD_EEPROM_WP_CTRL signal to control EEPROM WP signal if defined
...
Erases and write operations will use the BOARD_EEPROM_WP_CTRL
macro to remove the Write protection and restore it.
2017-01-20 22:55:04 +01:00
Beat Küng
e7db0ed098
test_mixer & mixer: use memmove instead of memcpy
...
Both, src & dst use the same array, thus potentially overlapping.
Behavior of memcpy in that case is undefined.
2017-01-18 18:23:42 +01:00
Lorenz Meier
b6e18a1479
Mixer test: More instrumentation to catch repro cases in CI
2017-01-14 20:42:54 +01:00
Lorenz Meier
26625b3a5d
Servo test: Fix resource leak
2017-01-14 07:47:03 -08:00