mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 07:03:34 +08:00
ROMFS: purge old mixing system
- SYS_USE_IO is now off by default (enabled by default per board)
This commit is contained in:
@@ -191,41 +191,6 @@ void DShot::enable_dshot_outputs(const bool enabled)
|
||||
request_stop();
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
DShotConfig config = (DShotConfig)_param_dshot_config.get();
|
||||
|
||||
unsigned int dshot_frequency = DSHOT600;
|
||||
|
||||
switch (config) {
|
||||
case DShotConfig::DShot150:
|
||||
dshot_frequency = DSHOT150;
|
||||
break;
|
||||
|
||||
case DShotConfig::DShot300:
|
||||
dshot_frequency = DSHOT300;
|
||||
break;
|
||||
|
||||
case DShotConfig::DShot600:
|
||||
dshot_frequency = DSHOT600;
|
||||
break;
|
||||
|
||||
case DShotConfig::DShot1200:
|
||||
dshot_frequency = DSHOT1200;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
int ret = up_dshot_init(_output_mask, dshot_frequency);
|
||||
|
||||
if (ret < 0) {
|
||||
PX4_ERR("up_dshot_init failed (%i)", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
_output_mask = ret;
|
||||
}
|
||||
|
||||
_outputs_initialized = true;
|
||||
|
||||
@@ -177,7 +177,6 @@ private:
|
||||
uORB::Publication<vehicle_command_ack_s> _command_ack_pub{ORB_ID(vehicle_command_ack)};
|
||||
|
||||
DEFINE_PARAMETERS(
|
||||
(ParamInt<px4::params::DSHOT_CONFIG>) _param_dshot_config,
|
||||
(ParamFloat<px4::params::DSHOT_MIN>) _param_dshot_min,
|
||||
(ParamBool<px4::params::DSHOT_3D_ENABLE>) _param_dshot_3d_enable,
|
||||
(ParamInt<px4::params::DSHOT_3D_DEAD_H>) _param_dshot_3d_dead_h,
|
||||
|
||||
@@ -8,24 +8,6 @@ serial_config:
|
||||
parameters:
|
||||
- group: DShot
|
||||
definitions:
|
||||
DSHOT_CONFIG:
|
||||
description:
|
||||
short: Configure DShot
|
||||
long: |
|
||||
This enables/disables DShot. The different modes define different
|
||||
speeds, for example DShot150 = 150kb/s. Not all ESCs support all modes.
|
||||
|
||||
Note: this enables DShot on the FMU outputs. For boards with an IO it is the
|
||||
AUX outputs.
|
||||
type: enum
|
||||
values:
|
||||
0: Disable (use PWM/Oneshot)
|
||||
150: DShot150
|
||||
300: DShot300
|
||||
600: DShot600
|
||||
1200: DShot1200
|
||||
reboot_required: true
|
||||
default: 0
|
||||
DSHOT_MIN:
|
||||
description:
|
||||
short: Minimum DShot Motor Output
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
* @reboot_required true
|
||||
* @group System
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SYS_USE_IO, 1);
|
||||
PARAM_DEFINE_INT32(SYS_USE_IO, 0);
|
||||
|
||||
/**
|
||||
* S.BUS out
|
||||
|
||||
Reference in New Issue
Block a user