Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
dff7cf68
Commit
dff7cf68
authored
7 years ago
by
Beat Küng
Browse files
Options
Downloads
Patches
Plain Diff
pwm_out_sim: fix documentation & task name
parent
68ce62f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/drivers/pwm_out_sim/PWMSim.cpp
+10
-16
10 additions, 16 deletions
src/drivers/pwm_out_sim/PWMSim.cpp
with
10 additions
and
16 deletions
src/drivers/pwm_out_sim/PWMSim.cpp
+
10
−
16
View file @
dff7cf68
...
...
@@ -533,7 +533,7 @@ PWMSim::ioctl(device::file_t *filp, int cmd, unsigned long arg)
int
PWMSim
::
task_spawn
(
int
argc
,
char
*
argv
[])
{
_task_id
=
px4_task_spawn_cmd
(
"pwmsim"
,
_task_id
=
px4_task_spawn_cmd
(
"pwm
_out_
sim"
,
SCHED_DEFAULT
,
SCHED_PRIORITY_ACTUATOR_OUTPUTS
,
1100
,
...
...
@@ -604,29 +604,23 @@ int PWMSim::print_usage(const char *reason)
PRINT_MODULE_DESCRIPTION
(
R"DESCR_STR(
### Description
Driver for simulated PWM outputs.
Driver/configurator for the virtual PWMSim port.
This virtual driver emulates PWM / servo outputs for setups where
the connected hardware does not provide enough or no PWM outputs.
Its only function is to take actuator_control uORB messages,
Its only function is to take `actuator_control` uORB messages,
mix them with any loaded mixer and output the result to the
actuator_output uORB topic. PWMSim can also be performed with normal
PWM outputs, a special flag prevents the outputs to be operated
during PWMSim mode. If PWMSim is not performed with a standalone FMU,
but in a real system, it is NOT recommended to use this virtual
driver. Use instead the normal FMU or IO driver.
`actuator_output` uORB topic.
It is used in SITL and HITL.
)DESCR_STR"
);
PRINT_MODULE_USAGE_NAME
(
"pwmsim"
,
"driver"
);
PRINT_MODULE_USAGE_COMMAND_DESCR
(
"start"
,
"Start the task
(without any mode set, use any of the mode_* cmds)
"
);
PRINT_MODULE_USAGE_NAME
(
"pwm
_out_
sim"
,
"driver"
);
PRINT_MODULE_USAGE_COMMAND_DESCR
(
"start"
,
"Start the task
in mode_pwm16
"
);
PRINT_MODULE_USAGE_PARAM_COMMENT
(
"All of the mode_* commands will start the pwm sim if not running already"
);
PRINT_MODULE_USAGE_COMMAND
(
"mode_pwm"
);
PRINT_MODULE_USAGE_COMMAND
(
"mode_pwm16"
);
PRINT_MODULE_USAGE_COMMAND
_DESCR
(
"mode_pwm"
,
"use 8 PWM outputs"
);
PRINT_MODULE_USAGE_COMMAND
_DESCR
(
"mode_pwm16"
,
"use 16 PWM outputs"
);
PRINT_MODULE_USAGE_DEFAULT_COMMANDS
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment