From 44845fe5afc145131b9ce696230116df62b32754 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Mon, 22 Jul 2019 20:06:46 +0300 Subject: [PATCH] add a comment --- Firmware/MotorControl/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Firmware/MotorControl/src/main.cpp b/Firmware/MotorControl/src/main.cpp index d7f74a4..341bb88 100644 --- a/Firmware/MotorControl/src/main.cpp +++ b/Firmware/MotorControl/src/main.cpp @@ -135,6 +135,11 @@ void setup() { volatile unsigned int tick = 0; volatile bool armed = false; +/* +We use our own timer for more precise timings +And it ticks only when armed, to ensure +that updateExecution() doesn't skip a single tick + */ ISR(TIMER2_COMPA_vect) { if (armed) { tick++;