mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-11 01:21:35 +08:00
astyle shift module documentation to bottom of files
- Astyle chokes on the module description strings, so for now we can keep them near the bottom of each file.
This commit is contained in:
@@ -39,8 +39,6 @@
|
||||
#include <uORB/Subscription.hpp>
|
||||
#include <uORB/topics/parameter_update.h>
|
||||
|
||||
extern "C" __EXPORT int pwm_out_sim_main(int argc, char *argv[]);
|
||||
|
||||
PWMSim::PWMSim(bool hil_mode_enabled) :
|
||||
CDev(PWM_OUTPUT0_DEVICE_PATH),
|
||||
OutputModuleInterface(MODULE_NAME, px4::wq_configurations::hp_default)
|
||||
@@ -273,6 +271,12 @@ int PWMSim::custom_command(int argc, char *argv[])
|
||||
return print_usage("unknown command");
|
||||
}
|
||||
|
||||
int PWMSim::print_status()
|
||||
{
|
||||
_mixing_output.printStatus();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PWMSim::print_usage(const char *reason)
|
||||
{
|
||||
if (reason) {
|
||||
@@ -300,14 +304,7 @@ It is used in SITL and HITL.
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PWMSim::print_status()
|
||||
{
|
||||
_mixing_output.printStatus();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
pwm_out_sim_main(int argc, char *argv[])
|
||||
extern "C" __EXPORT int pwm_out_sim_main(int argc, char *argv[])
|
||||
{
|
||||
return PWMSim::main(argc, argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user