@ -707,7 +702,7 @@ int PWMOut::ioctl(file *filp, int cmd, unsigned long arg)
@@ -707,7 +702,7 @@ int PWMOut::ioctl(file *filp, int cmd, unsigned long arg)
@ -1094,34 +1089,6 @@ int PWMOut::pwm_ioctl(file *filp, int cmd, unsigned long arg)
@@ -1094,34 +1089,6 @@ int PWMOut::pwm_ioctl(file *filp, int cmd, unsigned long arg)
@ -1267,50 +1234,6 @@ int PWMOut::custom_command(int argc, char *argv[])
@@ -1267,50 +1234,6 @@ int PWMOut::custom_command(int argc, char *argv[])
constchar*verb=argv[myoptind];
/* does not operate on a FMU instance */
if(!strcmp(verb,"i2c")){
if(argc>2){
intbus=strtol(argv[1],0,0);
intclock_hz=strtol(argv[2],0,0);
intret=fmu_new_i2c_speed(bus,clock_hz);
if(ret){
PX4_ERR("setting I2C clock failed");
}
returnret;
}
returnprint_usage("not enough arguments");
}
if(!strcmp(verb,"sensor_reset")){
if(argc>1){
intreset_time=strtol(argv[1],nullptr,0);
sensor_reset(reset_time);
}else{
sensor_reset(0);
PX4_INFO("reset default time");
}
return0;
}
if(!strcmp(verb,"peripheral_reset")){
if(argc>2){
intreset_time=strtol(argv[2],0,0);
peripheral_reset(reset_time);
}else{
peripheral_reset(0);
PX4_INFO("reset default time");
}
return0;
}
/* start pwm_out if not running */
if(!is_running()){
@ -1394,15 +1317,6 @@ By default the module runs on a work queue with a callback on the uORB actuator_
@@ -1394,15 +1317,6 @@ By default the module runs on a work queue with a callback on the uORB actuator_
PRINT_MODULE_USAGE_NAME("pwm_out","driver");
PRINT_MODULE_USAGE_COMMAND("start");
PRINT_MODULE_USAGE_COMMAND_DESCR("sensor_reset","Do a sensor reset (SPI bus)");
PRINT_MODULE_USAGE_ARG("<ms>","Delay time in ms between reset and re-enabling",true);