Search found 23 matches
- Tue Jul 09, 2019 12:29 am
- Forum: Showcase
- Topic: HC-SR04 using RMT - very fast
- Replies: 16
- Views: 32164
Re: HC-SR04 using RMT - very fast
I was pointing out that worrying about the impact of integer vs floating point math (single or double precision) is not worth the effort, as even the slowest method is totally insignificant compared to the meadurement interval. The time taken to perform that calculation is less than 1/1000 the time ...
- Sun Jun 30, 2019 2:33 pm
- Forum: Showcase
- Topic: HC-SR04 using RMT - very fast
- Replies: 16
- Views: 32164
Re: HC-SR04 using RMT - very fast
The time taken to perform that calculation is less than 1/1000 the time to get the distance from the hcsr04.
Insignificant.
Insignificant.
- Mon Mar 25, 2019 6:49 pm
- Forum: Showcase
- Topic: HC-SR04 using RMT - very fast
- Replies: 16
- Views: 32164
Re: HC-SR04 using RMT - very fast
I would be VERY surprised if the compiler did not perform constant folding by default. Hello, First of all thank you for your code it works perfectly. now i'm traing to simplify the ligne: distance = 340.29 * ITEM_DURATION(item->duration0) / (1000 * 1000 * 2); Because the μC works for nothing if we ...