-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pwm_out_sim cleanup #9007
pwm_out_sim cleanup #9007
Conversation
src/drivers/pwm_out_sim/PWMSim.hpp
Outdated
#define DRIVERS_PWM_OUT_SIM_PWMSIM_HPP_ | ||
|
||
/** | ||
* @file hil.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs update for correct file.
- move to ModuleBase - strip down to PWM 8 and 16 modes only - remove all dead code - implement missing pwm ioctls (current value, rates, etc) - default rate 50Hz -> 400Hz
I'll test HIL quickly. |
jMavsim HITL still working. https://logs.px4.io/plot_app?log=c27ae0a0-b333-4948-99f8-db0673bf3364 |
|
||
)DESCR_STR"); | ||
|
||
PRINT_MODULE_USAGE_NAME("pwmsim", "driver"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to match the shell command: pwm_out_sim
(and the same for px4_task_spawn_cmd
).
)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)"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without any mode set
is this correct? The constructor initializes with pwm16
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you document what the special flag is and how it's configured?
One of the intermittent CI mission test failures appears to be a problem with pwm_out_sim. While debugging I did a bit of a cleanup.