mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 22:13:33 +08:00
Raft logic fix: forcing active mode when allocation activity is detected
This commit is contained in:
@@ -30,6 +30,12 @@ public:
|
||||
return can_followup;
|
||||
}
|
||||
|
||||
virtual void handleAllocationActivityDetection(
|
||||
const uavcan::ReceivedDataStructure<uavcan::protocol::dynamic_node_id::Allocation>& msg)
|
||||
{
|
||||
std::cout << "ALLOCATION ACTIVITY\n" << msg << std::endl;
|
||||
}
|
||||
|
||||
bool matchAndPopLastRequest(const UniqueID& unique_id, uavcan::NodeID preferred_node_id)
|
||||
{
|
||||
if (requests_.empty())
|
||||
|
||||
Reference in New Issue
Block a user