When you say gesture controls, which one’s are you referring to?
It seems like you mean just basic swings and clashes.
When you say gesture controls, which one’s are you referring to?
It seems like you mean just basic swings and clashes.
No, I mean things like Volume control where you have to rotate the saber for the settings. Or switch through profiles and twisting. I don’t / can’t really have anything like that. Rotating a saber? Easy. Rotating a Pet Carrier? not so easy.
I want clashes, and hits. I just want all the controls done with the two buttons and the OS to know the board is just vertical all the time.
In the props folder at the same directory level as the config folder are the available props. If you open them in text editor, at the top will be a text manual describing controls. Just don’t mess with them The prop controls for fett263’s are on his website.
Comb through and see what suits you. It might be that what you want exists. Or not. Not sure since I kinda have what I need, but don’t know the totality of the available controls.
See what you can get out of that, and the available defines.
Props can be modified, but that’s above my level so far.
I would have to think there is a stationary setting.
You’ve got the option of adding a Bluetooth board to it and controlling the extra features like volume that way.
Gestures are optional. Any control like volume and presets are certainly just controllable via buttons.
AS far as turning off after a certain time, just set your bladestyle to use a TrConcat, where the first event is showing your main color, then TrDelay for as long as you want, then show Black next. Simplified example:
StylePtr<Layers<Black,
TransitionEffectL<TrConcat<TrInstant,Layers<
......main base blade color goes here. Could be multiple layers if you wanted....
TrDelay<10000>>,EFFECT_IGNITION>
>>()
Here’s the default Style Editor’s Layered style example sandwiched in there:
StylePtr<Layers<Black,
TransitionEffectL<TrConcat<TrInstant,Layers<
Red,
ResponsiveLockupL<White,TrInstant,TrFade<100>,Int<26000>>,
ResponsiveLightningBlockL<White>,
ResponsiveMeltL<Mix<TwistAngle<>,Red,Yellow>>,
ResponsiveDragL<White>,
ResponsiveClashL<White,TrInstant,TrFade<200>,Int<26000>>,
ResponsiveBlastL<White>,
ResponsiveBlastWaveL<White>,
ResponsiveBlastFadeL<White>,
ResponsiveStabL<White>,
InOutTrL<TrWipe<300>,TrWipeIn<500>>>,
TrDelay<10000>>,EFFECT_IGNITION>
>>()
This would have that style active for 10 seconds, then go black.
That is in the plan for sure.
I am using Fett’s button controls and it seems like volume is only controllable from movement. I can change the presets using just the buttons, but there is a point where it wants to be rotated.
So I would be lets say that whole Falcon style code in there and for two of the four, I use that TrConcat?
Would you consider changing props?
For example, the BC (NoSloppy) prop has this
Volume Menu:
* NOTE * Tilting blade too high or low in Volume Menu will give a warning tone to
tilt up or down to avoid erratic rotational volume changes at extreme blade angles.
Enter/Exit - Hold POW + Clash.
Volume UP - Rotate Right
- or -
- Long click and release POW while in Volume Menu. (just like next preset)
Volume DOWN - Rotate Left
- or -
- Double click and hold POW, release after a second while in Volume Menu.
(click then long click, just like next preset)
Quick MAX Vol - Short click POW while in Volume Menu.
Quick MIN Vol - Double click POW while in Volume Menu.
And SA22C has
// 2 Button:
// POWER
// Activate Muted - double click and hold while OFF
// Activate - short click while OFF
// Play/Stop Music - hold and release while OFF
// Turn off blade - hold and wait till blade is off while ON
// Force Effects - double click while ON
// Volume UP - short click while OFF and in VOLUME MENU
// Prev Preset - hold and wait while OFF
// Color Change mode - hold + toggle AUX while ON
// Lightning Block - double click and hold while ON
// Melt - hold while stabbing (clash with forward motion, horizontal)
// Battle Mode - triple-click and hold for half a second while on
// AUX
// Blaster blocks - short click/double click/triple click while ON
// Multi-Blast - double-click and hold for half a second
// to trigger blaster block, swing saber while in multi-blast mode
// to exit, double-click and hold for half a second
// Next Preset - short click while OFF
// Lockup - hold while ON
// Drag - hold while ON pointing the blade tip down
// Enter VOLUME MENU - long click while OFF
// Volume down - short click while OFF and in VOLUME MENU
// Battery level - hold while off
And they are included in the props folder you got with OS7.
SA22C looks like it might worth trying…The BC one might not work because of the angle it’s at. (It’s pointing straight up basically)
Cool.
To switch props, go into your config and look for
#ifdef CONFIG_PROP
#include "../props/saber_fett263_buttons.h"
#endif
Change it to
#ifdef CONFIG_PROP
#include "../props/saber_sa22c_buttons.h"
#endif
Then upload to your board.
You set the orientation of the board with one of the defines found on the following page.
Pointing up is relevant to the board’s orientation, so you can tell it whatever it is at rest is level:
“TOWARDS BLADE” assumes the blade is level with the horizon, so an X axis of zero. So you would just consider the left or right side of your prop to be where the blade “is”.
I’ve tried a few other button props now, and none are triggering the music tracks other than Fetts. Trying the basic saber.h one now…
Edited to add. Each prop has it’s issues. My only complaint about Fett’s at the moment, is the Volume Menu. I still have to spin the Pet Carrier around to get it to adjust. Other than that, with the board positioned vertically, it seems to work the best.
So I took it to the park yesterday and had a full day to see it in action.
Other than the volume menu, everything works without rotating the DEP.
That’s awesome. You should do a HAL9000/Discovery One font for it!
SO GOOD, great work dude.