ProffieOS v6.x ALPHA testing

Adjusted the existing maximum blade length 128 to 105 using the serial monitor command, confirmed in serial that changes took effect and unplug usb. applied the battery and turned on the saber. the length was saved to a much shorter blade. not really a test of the dynamic but I can confirm that the Saving of the blade length worked.

Where did you find that?
There is no SAVE_BLADE_LENGTH. Simply enabling DYNAMIC_BLADE_LENGTH also makes it save it, as having a dynamic blade length that doesn’t get saved seems pretty useless.

1 Like

Ok…sorry…alpha…my mistake…lol… how would like to see that config? post pastebin here?

typo. my bad.

If it’s not too massive, just type three backticks (on their own line) then paste the config file and then three more backticks. If it’s huge, pastebin is a good idea.

1 Like

Dynamic Blade Dimming is functioning,

tested using both the ProffieOS Workbench and the Serial Monitor.

test one:

set_blade_dimming 1

attached neopixel blade and turned “on” the saber no visible light

unplugged battery.

Test: Two

set_blade_dimming 5000

attached neopixel blade and turned on the saber

visibly dim then full brightness.

Test 3
ProffieOS Workbench > Settings >
turned up brightness to 100%

attached neopixel blade and turned on the saber brightness maximum restored.

clash threshold set_clash_threshold 3.0

confirmed by ProffieOS Workbench.

pulled out the usb and checked again the threshold. the saving of the clash threshold and usage of the clash is set to the 3.0

Ok back to blade testing. The new update (seems to work commit) Is causing multiple blade styles to layer on the main blade.

I managed to get a message in serial monitor as the board freezes with squee-of-death

00:25:34.584 -> ASSERT !client_ || (color_buffer_ptr - color_buffer_front < NELE`

Yeah, when I tried your config file, some of the pixel data is coming out on the wrong pin, so there is definitely something bad in that change. I hope to have a fix for it soon though.

2 Likes

Config:
Blade 1 (main blade) White
Blade 2 (hilt PCB LEDs) Red
Blade 3 (switch area accents) Green
Blade 4 (non-neo LED) Blue
Blade sizes respectively, 132, 5, 11 . The main blade lights up Green at emitter, Red middle, White for the remainder.
Changing the blade sizes changes the result.
30,30,30 they all share the same space and flicker and fight for who’s going to show.
With this, I also see it in the switch accents strip, so it may not be just the main blade affected (which would make sense)

I think the WS2811 code should behave better now.

Confirmed, working well now.

1 Like

I’m not sure how or why but this issue I was having with the blade and preon starting inches from emitter is now gone. All is working as it should . I didn’t change anything. Could have been an OS download issue. I’m on 1.8.17 now with the update 3.6. Thanks for all this hard work. I’ll be testing more things as I go.

It was probably caused by the neopixel issue that I fixed yesterday.

3 Likes

That would explain it. Thanks Again! This is really great!

1 Like

Ok clarification needed on this.
Percentage<> with WavLen does work. However, it DOES need the EFFECT_… filled in.
It does not work if trusting WavLen<> to pickup the correct effect from the TransitionEffectL it is in.
ie:

TransitionEffectL<TrConcat<TrFadeX<Percentage<WavLen<EFFECT_FORCE>,33>>,.............EFECT_FORCE>

works fine

TransitionEffectL<TrConcat<TrFadeX<Percentage<WavLen<>,33>>,.............EFECT_FORCE>

does not.
This in a TrConcat is the last thing seen, the rest of the concat does not show.

That’s weird. I need to see the full style to try it out myself though.

  StylePtr<Layers<
    Red,
    TransitionEffectL<TrConcat< TrFadeX< Percentage<WavLen<EFFECT_FORCE>,33> >, StyleFire<Blue,Cyan>, TrInstant, Cyan, TrDelayX< Percentage<WavLen<EFFECT_FORCE>,33> >, Green, TrWipeX< Percentage<WavLen<EFFECT_FORCE>,33> >  >,EFFECT_FORCE>,
TransitionEffectL<TrConcat<TrInstant,AlphaL<White,Bump<Scale<BladeAngle<>,Int<26000>,Int<6000>>,Int<10000>>>,TrFadeX<WavLen<>>>,EFFECT_CLASH>,
    InOutTrL<TrWipeX<WavLen<EFFECT_IGNITION>>,TrWipeInX<WavLen<EFFECT_RETRACTION>>>,
    TransitionEffectL<TrConcat<TrInstant,Layers<White,AlphaL<Black,SmoothStep<Trigger<EFFECT_PREON,WavLen<>,Int<10>,Int<1>>,Int<1>>>>,TrDelayX<WavLen<>>>,EFFECT_PREON>
  >>(),

Here’s the clearly varied time wavs I was testing with if you want:

1 Like

I did notice that on the webusb and during the normal operations that certain wav files didn’t play. is this a filename size limit.

from ProffieOS Workshop

Battery: Playing common/tracks/Star%20Wars%20Medley%20%28Violin%20Cover%29%20-%20Taylor%20Davis.wav Playing common/tracks/Star%20Wars%20Medley%20%28Violin%20Cover%29%20-%20Taylor%20Davis.wav, (not found) volts.