diff --git a/hal/lib/Athena/ctre/CtreCanNode.h b/hal/lib/Athena/ctre/CtreCanNode.h index bf5a4a5353..ead88b43e0 100644 --- a/hal/lib/Athena/ctre/CtreCanNode.h +++ b/hal/lib/Athena/ctre/CtreCanNode.h @@ -88,6 +88,11 @@ private: uint32_t arbId; uint8_t toSend[8]; uint32_t periodMs; + txJob_t() : arbId(0),periodMs(0) + { + for(int i=0;i toFill = GetTx(CONTROL_1 | GetDeviceNumber()); - toFill->closedLoopEnable = 1; + SetClosedLoopControl(1); } /* PCM D'tor */