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
Lorenz Meier
454becdae5
Merged release_v1.0.0 branch into master
2015-06-25 21:45:17 +02:00
Lorenz Meier
26c47f25cb
PWM outputs: Allow the new p:PWM_OUT etc params for setting PWM limits via params at boot-time.
2015-06-23 12:30:47 +02:00
Mark Charlebois
9758112e31
Use px4_config.h instead of nuttx/config.h
...
Modified code to use OS independent header file for config settings.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 10:55:41 -07:00
Lorenz Meier
23655675d3
PWM command: Fix code style
2015-03-28 19:54:00 +01:00
Lorenz Meier
3532a09a15
PWM command: Fix min/max/disarmed/failsafe commands to also read the current settings first before modifying them.
2015-02-23 19:50:51 +01:00
Lorenz Meier
653b3e71be
PWM command: Do not modify disarmed PWM values
2015-02-23 19:50:42 +01:00
Lorenz Meier
ac155b0fac
System cmds: Move to 0 based index
2015-02-09 22:56:22 +01:00
Lorenz Meier
52d5a7c00a
Fix PWM command
2014-11-16 23:24:52 +01:00
Lorenz Meier
1fbdca4ee9
Add command to run termination failsafe
2014-08-27 07:59:53 +02:00
Lorenz Meier
54fc6aa678
Hotfix: Optimize shell commands for size - we do not need massive performance there
2014-08-13 10:33:46 +02:00
Lorenz Meier
74f31618f2
report error in pwm command if any
2014-07-19 15:21:29 +02:00