Explained a thing

This commit is contained in:
anatolykopyl
2019-06-03 12:24:53 +03:00
committed by GitHub
parent f1e06c3879
commit 8955af0074

View File

@@ -182,6 +182,10 @@ void loop() {
}
void update_speed() {
/*
* Dividing by two because reed switch gets triggered twice a rotation
* You probably won't need that if you opt for a hall sensor
*/
dist = CIRCUMF * rotations / 2;
speedKMH = dist * 3.6 / (WAIT / 1000);