mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Fix CAN API timing out incorrectly (#1497)
HAL_GetFPGATime returns 0 if it starts with a non zero status. Always use monotonic clock for CAN times, rather then trying to sync FPGA. Change timeout from 50 ms to 100 ms.
This commit is contained in:
committed by
Peter Johnson
parent
300eeb330d
commit
d46ce13ffe
@@ -31,7 +31,7 @@ static constexpr int32_t StatusEnergy = 0x5D;
|
||||
|
||||
static constexpr int32_t Control1 = 0x70;
|
||||
|
||||
static constexpr int32_t TimeoutMs = 50;
|
||||
static constexpr int32_t TimeoutMs = 100;
|
||||
static constexpr int32_t StatusPeriodMs = 25;
|
||||
|
||||
/* encoder/decoders */
|
||||
|
||||
Reference in New Issue
Block a user