Preset/Font-Specific Clash Sensitivity for Shared Chassis Systems

I mainly work on hilt and chassis design, so I’m not very familiar with the more advanced ProffieOS configuration options. If there is already a way to achieve this, I’d appreciate any guidance.

I would like to ask whether it would be possible to make the clash threshold adjustable per preset or per font, rather than using a single global value.

My use case is a shared removable chassis system, similar to the type used by companies such as 89Sabers, where the same Proffieboard chassis may be used across multiple hilts.

Even when the chassis, speaker, battery, and board are the same, each hilt can have different internal acoustic volume, wall thickness, speaker position, and resonance characteristics.

Because of this, one hilt may work perfectly with a certain clash threshold, while another hilt using the exact same chassis may produce false clashes due to speaker vibration or internal resonance.

For example:

  • Hilt A: works correctly at 3.5G

  • Hilt B: false clashes occur at 3.5G, but works correctly at 5.0G

  • Hilt C: may require a different value again

Ideally, I would like each preset or sound font to have its own clash threshold, so that selecting the preset for a specific hilt would automatically apply the correct sensitivity.

For example:

  • Preset 1 / Hilt A → Clash Threshold 3.5G

  • Preset 2 / Hilt B → Clash Threshold 5.0G

  • Preset 3 / Hilt C → Clash Threshold 4.2G

This would be especially useful for shared chassis systems, because the mechanical and acoustic characteristics of the hilt can change even though the electronics remain identical.

Since ProffieOS already supports dynamic clash threshold adjustment, would it be feasible to store or apply a different clash threshold for each preset?

If per-preset implementation is difficult, would a per-font setting be another possible approach?

Is this already possible with the current ProffieOS configuration?
If not, would this be feasible as a feature or custom implementation?

Hi there @Ayame. While not natively available in ProffieOS, most things are possible with a little code. The clash threshold is available to the prop, so a custom prop combined with bladeID with the resistors identifying the hilt could in theory achieve this. I’m not aware of any existing props that handle your specific scenario.

Would it be possible to add clash threshold adjustments in the font config.ini that overrides the value set in the prop, so if the number in the font config is higher or lower than the one set in the prop it uses that one instead

The POD has some info on the config.ini ProffieOS Documentation: Sound Font config.ini configuration

While I believe it would be technically possible to modify the OS to enable the config.ini to effect the clash strength, it’s just not programmed to do that today. That file is more about tuning the saber to the sounds than to the hilt it’s in, since the model is usually chassis = saber, so clash sensitivity gets set once per saber, not per font.

If I were designing a solution, I would still go down the prop path on this as an enhancement to chassis detect that would expand to not only recognize a removable chassis is in the hilt, but which hilt it is. Then per-hilt clash sensitivity starts to make sense. While I don’t personally have any setups that would need this, there are a few companies that use this exact model.

Since the ProffieOS config file is just C++, and CLASH_THRESHOLD_G is a define, there is nothing stopping us from putting an expression there instead of just a value.

We just have to figure out what preset we’re on and then return the right value.

There is one problem though; if DYNAMIC_CLASH_THRESHOLD is defined, then CLASH_THRESHOLD_G is only evaluated as a default for a config file, which doesn’t have access to the current_preset_ variable, so in order for this to work, we have to make sure to not have DYNAMIC_CLASH_THRESHOLD, or any of the defines that turn that on.

Now, we should be able to define CLASH_THRESHOLD_G something like this:

#define CLASH_THRESHOLD_G \
  (current_preset_.preset_num == 1 ? 3.5 : \
   current_preset_.preset_num == 2 ? 5.0 : \
   current_preset_.preset_num == 3 ? 4.2 : \
   4.0)

Now ProffieOS can use blade ID to automatically pick the right set of presets for you, but if you do that, then the entire array of presets will be different, so it won’t be “preset 1” anymore, it will be “preset array 1”. In such a setup, we would define CLASH_THRESHOLD_G like this:

#define CLASH_THRESHOLD_G \
  ( current_config==nullptr ? 4.0 : \
    current_config == blades+0 ? 3.5 : \
    current_config == blades+1 ? 5.0 : \
    current_config == blades+2 ? 4.2 : \
    4.0 )

As a bonus, current_config should be available everywhere, so this should work even when DYNAMIC_CLASH_THRESHOLD is defined I think.

However, if you also use separate save directories for each blade array (which you should) then the saved value can be different for each blade and you don’t need any of this trickery. :slight_smile:

1 Like

Some information about using separate save directories can be found on this page: