mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 17:53:34 +08:00
Initial Cannode PWM Support (#19748)
* Add uavcannode esc/servo pwm control pipeline * Remove cannode rc.interface with mixer purge * Cannode add Kconfig options to reduce flash usage
This commit is contained in:
@@ -50,7 +50,7 @@ UavcanEscController::UavcanEscController(uavcan::INode &node) :
|
||||
_uavcan_pub_raw_cmd(node),
|
||||
_uavcan_sub_status(node)
|
||||
{
|
||||
_uavcan_pub_raw_cmd.setPriority(UAVCAN_COMMAND_TRANSFER_PRIORITY);
|
||||
_uavcan_pub_raw_cmd.setPriority(uavcan::TransferPriority::NumericallyMin); // Highest priority
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -91,8 +91,6 @@ private:
|
||||
*/
|
||||
uint8_t check_escs_status();
|
||||
|
||||
static constexpr unsigned UAVCAN_COMMAND_TRANSFER_PRIORITY = 5; ///< 0..31, inclusive, 0 - highest, 31 - lowest
|
||||
|
||||
typedef uavcan::MethodBinder<UavcanEscController *,
|
||||
void (UavcanEscController::*)(const uavcan::ReceivedDataStructure<uavcan::equipment::esc::Status>&)> StatusCbBinder;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user