Files
PX4-Autopilot/dsdl/uavcan/protocol/dynamic_node_id/server/220.AppendEntries.uavcan
T
2015-05-24 17:53:23 +03:00

22 lines
485 B
Plaintext

#
# This type is a part of the Raft consensus algorithm.
# Please refer to the specification for details.
#
uint16 DEFAULT_REQUEST_TIMEOUT_MS = 200
uint16 DEFAULT_BASE_ELECTION_TIMEOUT_MS = 1600 # request timeout * (max cluster size - 1) * 2 requests
uint32 term
uint32 prev_log_term
uint8 prev_log_index
uint8 leader_commit
# Full replication: 127 requests * 0.2 sec interval * 4 followers * 2 trips of next_index value ~ 3.5 min
Entry[<=1] entries
---
uint32 term
bool success