~digitalcircuit/flashlight-firmware/anduril2_opt_ramp_low_slower

Viewing all changes in revision 595.

  • Committer: Shane Synan
  • Date: 2021-07-13 00:22:06 UTC
  • Revision ID: digitalcircuit36939@gmail.com-20210713002206-wq13jewkt7x0yqvc
slower ramp with RAMP_SMOOTH_HALF/QUARTERSPEED_LEVEL

Added two new #define options to further slow down ramping speed near
floor, RAMP_SMOOTH_HALFSPEED_LEVEL and RAMP_SMOOTH_QUARTERSPEED_LEVEL.

If neither are set, no change to ramping.

If either are set, when ramp is at/below HALF or QUARTER level, smooth
ramping speed is slowed down by a half or fourth, respectively.  This
may make it easier to manage low moonlight levels on drivers with
limited precision near moonlight.

NOTE: PWM#_LEVELS should still be non-linear and determined via
level_calc.py!  This should only be used when there's no possible
additional precision to have in near-moonlight levels.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: