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
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
Hamish Willee
11364c0e01
Improve forcefail/terminatefail docs
2018-12-10 15:30:53 -08:00
Beat Küng
4d05a74aeb
pwm.cpp: use px4_get_parameter_value
2018-09-25 07:53:29 +02:00
bresch
740e409016
PWM - Add PWM_MIN and PWM_MAX parameters for MAIN and AUX ( #10452 )
2018-09-16 18:07:29 -04:00
David Sidrane
945a532260
pwm:Use test mode in steps command
2018-09-13 08:45:36 +02:00
David Sidrane
49f1540c30
pwm:Add test mode
2018-09-13 08:45:36 +02:00
bresch
04c765f497
Failsafe PWM - Add PWM_MAIN/AUX_FAILx parameters to set "failsafe" values.
2018-08-28 11:23:25 -04:00
Daniel Agar
d73d20bcce
systemlib delete unused systemlib.h
2018-06-12 09:06:30 +02: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
sanderux
220bd82b93
Per channel PWM disarmed values
2017-08-09 22:28:05 +02:00
Beat Küng
872049dc57
pwm.cpp: extend documentation for Oneshot
2017-07-14 11:57:11 +02:00
Beat Küng
fac6a829c4
pwm.cpp: fix issues by clang tidy (nullptr & void)
2017-07-14 11:57:11 +02:00
Beat Küng
647bdef855
pwm.c: rename to pwm.cpp and add module documentation
...
use c++ so that raw string literals can be used
2017-07-14 11:57:11 +02:00
Beat Küng
c22b79ece5
pwm.c: fix wrong comment
2017-07-14 11:57:11 +02:00
Beat Küng
2ad7194ed3
pwm command: update usage
2017-07-14 11:57:11 +02:00
Beat Küng
9e4d1235ac
pwm command: fix -e param (it was just ignored)
...
to keep the behavior the same, remove the -e flags from all pwm commands
that use it in the scripts.
2017-07-14 11:57:11 +02:00
Lorenz Meier
6a3e27fe18
PWM command: Be less verbose
2017-07-11 08:15:44 +02:00
Daniel Agar
94f5df8611
param and pwm ignore -Warray-bounds for clang
2017-06-02 19:35:18 -04: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
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
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
Lorenz Meier
e18fe0a8a8
Port PWM command to POSIX
2017-02-25 11:07:25 +01:00
Lorenz Meier
ca096c1257
PWM command: Allow robust error code returns
2016-12-26 15:34:53 +01:00
Lorenz Meier
11ef348a34
PWM: Use same stack size as mixer to limit fragmentation
2016-12-21 11:44:47 +01:00
David Sidrane
dcc2d1c3d1
I2C changes for upstream NuttX per trasaction freq control
2016-12-21 08:34:20 +01:00
Lorenz Meier
cc92339602
pwm command: Fix off-by-one in param parsing
2016-12-13 09:18:59 +01:00
Mark Whitehorn
88126e560f
remove trim command: replaced by trim parameters
2016-12-10 12:56:39 +01:00
Mark Whitehorn
6257d9bde1
remove pwm "trim" command; replaced by parameter values
2016-12-10 12:56:39 +01:00
Bartosz Wawrzacz
619efa7b45
[PX4IO/PWM driver] Added trim values to the PWM output drivers
2016-12-10 12:56:39 +01:00
Anton Matosov
e284a28e25
Fixed formatting
2016-11-19 15:14:18 +01:00
Anton Matosov
4edd12c44a
Make PWM_RATE configurable via QGroundControl
2016-11-19 15:14:18 +01:00
Julian Oes
8ff237c69f
Remove size optimization for individual modules
...
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Beat Küng
8a12dee125
cmake: remove all module.mk files & cmake conversion script ( #4918 )
...
It seems these files are leftovers.
2016-06-28 09:26:36 +02:00
CAI Dongcai
f8ff667dde
pwm steps bugs fixed ( #4719 )
...
fix the divide 0 bug in using "pwm steps" in NSH, and add it's
description
2016-06-05 12:08:31 +02:00
Lorenz Meier
91142f0c20
PWM cmd: better reporting
2016-05-14 18:05:14 +02:00
James Goppert
967e4dd127
Modified cmake to use STACK_MAX and STACK_MAIN
2016-04-14 13:36:36 -04:00
Lorenz Meier
1cdb2d3209
PWM command: Ensure we have enough stack
2016-01-10 16:11:30 +01:00
James Goppert
1d6b31d196
Switch to cmake build system.
2015-09-07 20:37:45 -04:00
Daniel Agar
354bde9627
format src/systemcmds/pwm
2015-09-05 12:21:11 -04:00