684 Commits

Author SHA1 Message Date
Daniel Agar
0d0cbd8243 clang-tidy ignore cert-flp30-c only in tests 2017-06-02 19:35:18 -04:00
Daniel Agar
94f5df8611 param and pwm ignore -Warray-bounds for clang 2017-06-02 19:35:18 -04:00
Daniel Agar
5d626bd940 clang-tidy remove redundant init 2017-06-02 19:35:18 -04:00
David Sidrane
f66f024e3a ver:Print vMM.mm.pp format 2017-05-03 08:18:47 +02:00
David Sidrane
0a1fbef8c8 pwm:ensure that a rate of 0 will invoke the ioctl
Prior to onshot being added to the system. The -r of the
   "rate" command would not invoke the ioctl PWM_SERVO_SET_UPDATE_RATE
   when -r was not provided on the command line. This may have been a
   feature or a bug.

   When onshot was added to the pwm command a bug was intorduced
   that precluded the ioctl PWM_SERVO_SET_UPDATE_RATE from being
   called on -r 0.

   This commit fixes that issue, and preserves the "prio to oneshot"
   behavior of the "rate" command when -r is not specified.
2017-04-25 09:02:28 +02:00
Beat Küng
7cb71af949 reboot.c: switch to px4_shutdown_request() 2017-04-20 10:01:51 +02:00
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 21e04c9f7afd56adf21d02b76c89ae06fe1fc5a7.
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