I did both in my proof-of-concept code and reduced the temperature window to 2 degrees. It does really well in the simulation (3rd graph in #1598331).
It depends on the strength of the filtering that the sensor data needs, but assuming no additional filtering is required, the new code should require less program space than the old one.
For the Noctigon K1, I have it displaying realtime voltage data on the colored button. This data was very noisy though, and the button changed rapidly between colors a lot of the time. Basically, if voltage is mapped on a vertical axis and time is on a horizontal axis, the button color looked something like this…
So I added a simple lowpass filter to the voltage values, using extra bits to make extra precision possible. It’s still noisy, but far less than it was before. Now the result looks more like this:
So I’ve been thinking of doing the same with the temperature values. I just haven’t done it yet.
Thanks for reporting this. This is exactly the sort of thing I thought might happen after merging such a large patch a couple weeks ago, and the reason why I don’t consider those new builds stable yet. Not looking forward to debugging it, but I’ll see if I can find the issue and fix it.
I’m also using a V1 (maybe from the later model) tailcap on my V2. I do not need a magnet and it makes the light a few mm shorter. The styling looks even more fitting than the native V2 tailcap.
The v2 tail cap has fitted fine on my D4v1 (from the middle of the production run) and also on a D1. The D4v2 tube fits both of these earlier models, too, although the threads are a bit tight especially in the head of the D4. The colour match of the greys is good but not perfect.
I confirm that the v1 aluminum tailcap fits just fine on any v2 aluminum body. I’ve personally done that with two different sets of tailcaps and body tubes and it works fine.
I prefer the v1’s tailcap as I don’t use a lanyard or magnet. The v1’s tailcap is shorter, weighs less, and is more comfortable in the palm of my hand.
Thank you for the answers. I seem to recall there were minor changes made to the V1 body at some point, and some of the threads might be different, but it sounds likely that V2 tailcaps are compatible with all V1 battery tubes, at least for the aluminum versions.
I would want the regular tailcap for pocket carry, but I’ve realized being able to easily swap for a magnetic tailcap would be handy in the garage and likely a handful of other situations.