vibrator: Update 1st version haptics tuning result

Click 1: 0.15g
Click 2: 0.27g
Click 3: 0.32g
Click 4: 0.48g
Click 5: 0.62g
High motion: 1.2g
Non-motion: 0.4g

Duration bin file as attachment
Texture tick 6ms
TICK 6ms
CLICK 6ms
DOUBLE_CLICKS 8 + 139+ 12 ms
HEAVY_CLICK 6ms

Bug: 151275921
Test: UT member test
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I0ac830e030916524333fa7654f678235130c11b7
This commit is contained in:
chasewu 2020-04-28 11:46:19 +08:00 committed by Cyan_Hsieh
parent 42619ce0af
commit ccacf4a4ab
4 changed files with 5 additions and 5 deletions

View File

@ -126,9 +126,9 @@ PRODUCT_COPY_FILES += \
# Vibrator HAL
PRODUCT_PRODUCT_PROPERTIES +=\
ro.vibrator.hal.config.dynamic=1 \
ro.vibrator.hal.click.duration=8 \
ro.vibrator.hal.tick.duration=8 \
ro.vibrator.hal.heavyclick.duration=8 \
ro.vibrator.hal.click.duration=6 \
ro.vibrator.hal.tick.duration=6 \
ro.vibrator.hal.heavyclick.duration=6 \
ro.vibrator.hal.short.voltage=161 \
ro.vibrator.hal.long.voltage=161 \
ro.vibrator.hal.long.frequency.shift=10 \

View File

@ -107,7 +107,7 @@ class HwCal : public Vibrator::HwCal, private HwCalBase {
static constexpr uint32_t WAVEFORM_CLICK_EFFECT_MS = 6;
static constexpr uint32_t WAVEFORM_TICK_EFFECT_MS = 2;
static constexpr uint32_t WAVEFORM_DOUBLE_CLICK_EFFECT_MS = 160;
static constexpr uint32_t WAVEFORM_DOUBLE_CLICK_EFFECT_MS = 159;
static constexpr uint32_t WAVEFORM_HEAVY_CLICK_EFFECT_MS = 8;
static constexpr uint32_t DEFAULT_LRA_PERIOD = 262;

View File

@ -59,7 +59,7 @@ static constexpr char WAVEFORM_DOUBLE_CLICK_EFFECT_SEQ[] = "3 0";
static constexpr char WAVEFORM_HEAVY_CLICK_EFFECT_SEQ[] = "4 0";
// UT team design those target G values
static std::array<float, 5> EFFECT_TARGET_G = {0.22, 0.35, 0.42, 0.57, 0.67};
static std::array<float, 5> EFFECT_TARGET_G = {0.15, 0.27, 0.32, 0.48, 0.62};
static std::array<float, 3> STEADY_TARGET_G = {1.2, 1.145, 0.4};
struct SensorContext {

Binary file not shown.