Raft logic fix: forcing active mode when allocation activity is detected

This commit is contained in:
Pavel Kirienko
2015-05-11 13:26:53 +03:00
parent 5af19f82c3
commit d623eee54a
5 changed files with 32 additions and 3 deletions
@@ -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())