mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
pwm_out_sim cleanup unnecessary Device CDev usage
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include "PWMSim.hpp"
|
||||
|
||||
PWMSim::PWMSim() :
|
||||
CDev("pwm_out_sim", PWM_OUTPUT0_DEVICE_PATH),
|
||||
CDev(PWM_OUTPUT0_DEVICE_PATH),
|
||||
_perf_control_latency(perf_alloc(PC_ELAPSED, "pwm_out_sim control latency"))
|
||||
{
|
||||
for (unsigned i = 0; i < MAX_ACTUATORS; i++) {
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
#include <uORB/topics/actuator_outputs.h>
|
||||
#include <uORB/topics/parameter_update.h>
|
||||
|
||||
class PWMSim : public device::CDev, public ModuleBase<PWMSim>
|
||||
class PWMSim : public cdev::CDev, public ModuleBase<PWMSim>
|
||||
{
|
||||
static constexpr uint32_t PWM_SIM_DISARMED_MAGIC = 900;
|
||||
static constexpr uint32_t PWM_SIM_FAILSAFE_MAGIC = 600;
|
||||
|
||||
Reference in New Issue
Block a user