mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 23:20:35 +08:00
uavcan: increase ESC max rate 200->400 Hz
- this should run synchronized with the rate controller and can be limited by IMU_GYRO_RATEMAX
This commit is contained in:
@@ -58,7 +58,7 @@ class UavcanEscController
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static constexpr int MAX_ACTUATORS = esc_status_s::CONNECTED_ESC_MAX;
|
static constexpr int MAX_ACTUATORS = esc_status_s::CONNECTED_ESC_MAX;
|
||||||
static constexpr unsigned MAX_RATE_HZ = 200; ///< XXX make this configurable
|
static constexpr unsigned MAX_RATE_HZ = 400;
|
||||||
static constexpr uint16_t DISARMED_OUTPUT_VALUE = UINT16_MAX;
|
static constexpr uint16_t DISARMED_OUTPUT_VALUE = UINT16_MAX;
|
||||||
|
|
||||||
static_assert(uavcan::equipment::esc::RawCommand::FieldTypes::cmd::MaxSize >= MAX_ACTUATORS, "Too many actuators");
|
static_assert(uavcan::equipment::esc::RawCommand::FieldTypes::cmd::MaxSize >= MAX_ACTUATORS, "Too many actuators");
|
||||||
|
|||||||
Reference in New Issue
Block a user