Anduril ... 2?

That was it! Thank you. Now I can set the bottom and top of ramp.
I don’t suppose there is a way to slow down the ramping speed?

Nope, not that I'm aware of. 150 steps was chosen to match to 150 x 16 msecs. The timer runs at 16 msec frequency so 150 x 16 msecs = 2.4 secs.

My goal in Narsil was 2.4 secs for a full ramp, but of course with Anduril, TK came up with a ramp ceiling vs. max/turbo which drops the ramping levels to 120, or 1.92 secs. 2 secs is a little fast to me.

With the source code, you could of course modify the ramping table to 200 entries for example, and still maintain a max ramp and a turbo. This would extend the ramping time, but of course there's a few settings to tweak if you mod the ramping table size.

NOTE: TK's text manual on Anduril 2 does not mention 1 blink for the first setting, 2 blinks for the 2nd setting. If it's documented that way anywhere, it's wrong!

OK, I reviewed the Anduril 2 chart here: https://budgetlightforum.com/t/-/65927

LP got it right, but, the wording is confusing. He's saying:

Release 7H after double flash (ceiling level)

Release 7H after triple flash (# of steps)

I would call that second flash or third flash because that's what they really are. It's not a quick double/triple flash, it's one flash per setting, pauses between the flashes.

I'll post this in LP's thread.

Last seen: 3 weeks 4 days ago :open_mouth:

Where did Toykeeper go? (hopefully on vacation)

She doesn't visit BLF daily, it's periodic, then she tries to catch up with things. Not sure if she's busy with work or life but I'm sure it's something like that.

I use stepped mode for that reason, it also eliminates the aggravating double blink

Active on IRC almost every day. Just too busy to be everywhere. :wink:

IRC? https://www.rescue.org/ ?

Internet relay chat. The official flashlight channel ##flashlight on irc.libera.chat.

Is it possible to have the advanced UI by default ? (I don’t mean desactivate simple UI, which seems like what #undef USE_SIMPLE_UI will do).

#define SIMPLE_UI_ACTIVE 0

Yep, every one of my Anduril 2 builds has Advanced as a default, always.

Thanks :+1:

My DT8 was in Advanced UI out of the box. Not sure if that is normal?

PLEASE.can some tell me the steps to set the thermal ceiling for Anduril 2?

Thanks

Go to the Advanced UI (if you are not there already)

From OFF => 3C to Battery Check => 2C to Temperatue Check => 7H (click 7 times but hold the 7th click pressed)....keep holding until you see the first flash....still keep holding until you see a second flash....then release the button....your flashlight will start flickering...now click as many degrees Celcius you want the limit to be above 30°C, i.e. 20 clicks for a thermal limit of 50°C. When finished, just do nothing....wait until you are back in temperature check.

Anyone able to give me some guidance as to how to add files to atmel studio on windows?

I’m trying to build anduril as as a project within atmel so I don’t have to use the bootleg method of editing each file then compiling it using the build all script.

I haven’t found a way to add anduril files into atmel studio though. If you’re on windows, could you do a quick screen record of how you do it, or point out what I’m doing wrongly?

EDIT: I followed this guide and it worked, yay!

Ich danke Ihnen.

Thanks L-P! Your K1 is configured higher than stock, so try 60 clicks for 90C - think the max is 90C on yours. If you click more times than max, it will set it for the max.

Small heads up - the ability to #define DEFAULT_AUTOLOCK_TIME and to compile in your own temperature offset (avoiding needing to recalibrate if you flash firmware at temperatures other than 21°C) has landed !

I’ve also discontinued the “ramp low slower” branch with RAMP_HALFSPEED_LEVEL and RAMP_QUARTERSPEED_LEVEL. Now that dynamic PWM exists for more granular moon levels , I agree with ToyKeeper’s assessment that it’s a much nicer experience to adjust the ramp instead .

Thanks again to ToyKeeper for feedback and reviewing!

If you’re wanting to make use of default autolock and temperature precalibration in your own build, here’s an example using the Noctigon KR4-nofet variant:

Save the following as cfg-noctigon-kr4-nofet-yournicknamehere.h alongside the other cfg-*.h files inside […]/anduril2/ToyKeeper/spaghetti-monster/anduril/:

// Include default configuration
#include “cfg-noctigon-kr4-nofet.h”
// ATTINY: 1634
// [Other extra options go here - you can also create a “-cfg.h” like “hank-cfg.h” to include on multiple lights]
// Default to enabling autolock, 10 minute timer
#define DEFAULT_AUTOLOCK_TIME 10
// Manually calibrate temperature offset
#ifdef USE_THERM_AUTOCALIBRATE
#undef USE_THERM_AUTOCALIBRATE
#endif
#ifdef THERM_CAL_OFFSET
#undef THERM_CAL_OFFSET
#endif
#define THERM_CAL_OFFSET 12 // default offset (5) + 7

Then run the build and flash your custom anduril.noctigon-kr4-nofet-yournicknamehere.hex file as per others’ guides. See the comments in config-default.h near #define USE_THERM_AUTOCALIBRATE for help in compile-time precalibrating your own flashlight.

In my case, my KR4 and D4SV2 both use a temperature offset of 12. It’s not perfect, and I’ve erred on the side of reading too high a bit more often than reading too low. If others use this, I’d be curious what their temperature offsets wind up being, too.

EDIT 2021-8-19 4:41 PM EDT: Accidentally put in an #undef for DEFAULT_AUTOLOCK_TIME - that’s not needed.