Anduril 2 feature change suggestions

Oh, I had only looked at the commit history, sorry. :slight_smile:

No need for an apology.

You are more knowledgeable with flashlights, drivers ,Electronics Etc.

I am very very efficient with time, promptness reliability Etc.

This is interesting - possibly the entire light is rebooting if there’s a bug somewhere (do the main emitters blink?). Alternatively, it might be resetting if the state machine gets confused in some way as to what state it’s supposed to be (there are a few weird nuances with some of the aux code that isn’t immediately obvious). My guess would be it’s related to the MCU sleeping.

Do you have a link to the code for the 8C mod, or an overview of what it does? I can probably merge the two and give it the quick onceover for any bugs.

I dont but @dmenezes built the hex files we are testing… maybe send him a private message…

feature change noticed:
On my TS10 when using the 8C hex,
battery check blinks the Aux LEDs instead of the main LEDs.

Part of the main codebase. You can use 3C to cycle which channel it uses.

2 Thanks

Thats nice to know, I missed that in the manual.

As far as I remember, the main emitters do not flash when it glitches. I can re flash the 8c aux mod tomorrow afternoon and confirm.

I was thinking it something like a reset, or checking what mode it needs to be in, or it stays in a modecfor a time span, then resets… etc. Lots of options

I know enough about how this kind of thing could work, to make me speculative ( or dangerous, lol) but not enough to read the code and see the concepts directly.

1 Thank

Best way to learn there is by doing. If you’re not sure what something does, ask :slight_smile: - start simple and as you understand what it’s doing, move onto more complex functionality.

2 Thanks

apologies if this has been suggested already, but you may be able to update it and breathe some new life into your machine.

https://dortania.github.io/OpenCore-Legacy-Patcher/MODELS.html
if that doesn’t work, you could also try here:
https://dosdude1.com/software.html

and if neither of those work, i would suggest trying to install linux on the machine. not being able to install new software has got to be pretty frustrating sometimes.

This describes a known problem for some builds, but I thought it got fixed recently. Maybe the fix wasn’t enough. Basically it leaves lockout and goes right to off state without a reboot.

https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/multi-channel/revision/677

2 Thanks

Yes it’s a request because for check voltage in all my Anduril 2 I am near become blind😂

1 Thank

Hey, any thought on being able to add aux config menu to tactical mode?
currently it looks like tactical mode is opperating with lockout aux settings… which is great. but I’d love to be able to set a different color aux for tac mode so I know thats what the light is in…

I’m using Aux as mode indicators. red in standby(DANGER will robinson you can blind yourself!), purple in lockout. But forgetting it in tac mode, seeing purple and thinking lockout, and 3C or 4C doing nothing could be a pain.

Maybe with the 8C aux off mod too?

little finicky though because aux setting is usually 7C and 7H, but in tac mode 7H is config menu. 8C and 8H to set aux in tac. and 9C to aux on/off? Or change tactical config to 10H where I think it should be, and have 7/8 available as is… more consistent that way.

More or less thinking out loud here… Not asking for a hex file or anything. basically IF I end up using tac mode much, I’d want to try to do this, just curious now if it looks possible the way tac mode is implemented?

In other thoughts, I have @dmenezes’ 8C aux mod running perfectly with no glitches on my new TS25!!

And I think I’ve become OK with just running the advanced UI daily, so I have the manual memory, so I really no longer need the 8C manual memory in simple UI mod that @wolfgirl42 made me… I need to test it on the TS25, be nice to have the option if I ever revert to the other usage practices.

I still can’t make the t1616 libraries work to compile. Same exact outcome in Ubuntu 16 as in Windows 8. Trying to get a fresh Ubuntu 22 install, but downloading a 4.6G iso file is proving difficult to not get a corrupted file.

2 Thanks

Then try the Container Build variant (either mine or @wolfgirl42’s). It’s only 30 MB and contains all required dependencies.

Worked on the TS11 today and stumbled over this bug. Then I remembered that you’ve reported it already. So now I can tell you: Yes, I’m able to reproduce it.

edit: It’s basically the same issue that should have been fixed by r677.

1 Thank

I’m both happy and sad… glad it is in fact not just me, but sorry you also have it…

3 days using my TS25, and thought it was fine, this morning realized in on/standby aux high, it flashes every 30 seconds. Perfectly fine in lockout. turn off manual memory and it stops doing it. This is the 8C aux on/off multi channel mod.

I could swear it didn’t do it till I charged the battery this morning… Guess I’ll see if it does it later when the battery gets back to sub 3.6v where it was when I started a couple days ago.

I think I’m jinxed lol.

Docker will Not run on Win 8.1, only 10 and up, I started out doing that over a month ago.

Or will it run in linux?
I thought Docker was a Windows only thing since it was what was given as the best WIndows method for this…

Edit; ah! I see Docker is cross platform and indeed runs in Linux. I had not noticed that before.

Here’s hoping it likes Puppy Linux, thats what I installed as a stop gap since I can’t get a ubuntu install image to boot properly yet.

Yeah, I have this as well. It is definitely related. Today I spent six hours with debugging this part of Anduril. After I thought I fixed the issue in lockout, it still happened in off mode. Some more debugging and testing. Then I tried to reproduce it with the original firmware before my debugging session – and failed. I can’t reproduce it in lockout anymore. And now even off mode is fine. WTF! It appears to depend on the battery voltage as well. Another hint that the ADC measurement is noisy (no averaging in standby mode).

Not sure when I have time to continue this debugging.

Docker was Linux only for most of its time. Then Windows got “Windows Subsystem for Linux” (WSL) in Win10, which is basically a Linux in a virtual machine. Thus it allows to run most Linux software, for example Docker.

@ToyKeeper @wolfgirl42
There’s also the annoying issue that voltage aux during on state overrides the aux channel mode, as you already know and @wolfgirl42 fixed (in a rather complicated way, but I don’t have a much better idea either right now). But there’s more to it: It also overrides the aux LEDs in the short time between off and go_to_standby. You can see this for example in lockout mode when it takes HOLD_TIMEOUT until the configured lockout aux LEDs turn on.
I tried to automate this a little better (for example by checking actual_level, which causes the aux LEDs to stay off in blinking modes because loop() isn’t run again while the main emitter are on), but ultimately it seems like the best solution would be to handle it at the same place as other set_level() related aux LED handling: In set_level_aux_leds() in fsm-ramping.c. The problem is that parts of rgb_led_voltage_readout() are contained in the UI part of Anduril…

1 Thank

More because Docker is the easiest way to get a one-click Linux environment on Windows, and for something like building anduril, you can run a premade linux system with everything already installed and configured, as opposed to installing all the requirements manually yourself.

1 Thank

I wonder if it would be faisible to make a website that compiles Anduril ? You upload your modified config file and it gives you the binaries .hex file.

2 Thanks

Yeah, I’ve had this idea for a while, just more important stuff to do. What I was thinking was an API that could be called to pull a github repo and build it, then could integrate it into github actions to have automated builds on releases, I’d just give users individual API keys and host the API.

1 Thank

Back to the forum after a long AWOL taking care of personal stuff, replying to messages in a single batch:

Thanks for the report, and glad it worked!!

Looks like a factory reset is mandatory when switching between different revisions.

This is kinda surprising to me, I never had to factory reset after reflashes, but that might be because I configure almost everything straight into my private HEXes and therefore it always overwrites anything that might be in the EEPROM already.

I’m somewhat relieved to hear that those strange problems that end up being cured by factory-reset are not exclusive to my 721-8C_quick_aux_switch modded firmware… but it’s doubly strange that you had to factory-reset it twice in order to get to behave normally. Perhaps some mis-clicking after the first factory-reset?

Glad to hear it, thanks for the report!

The latest version (diff against r.721) is here: 721-8C_quick_aux_switch_-_20230616.diff · GitHub