google_cpm: set taper_cc_step to 100mA, grace to 10 steps
double the grace count (60*10=600 s total) and halve the taper cc step
to make the transition from DC to MW more gradual
Bug: 184429201
Test: charge curve
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: Ib30743f8702a617d68c5b94f8097500c05510b93
diff --git a/google_cpm.c b/google_cpm.c
index 45c2422..fc48012 100644
--- a/google_cpm.c
+++ b/google_cpm.c
@@ -60,10 +60,11 @@
#define GCPM_DEFAULT_DC_LIMIT_VBATT_MAX 4400000
#define GCPM_DEFAULT_DC_LIMIT_DELTA_HIGH 50000
+/* behavior in taper */
#define GCPM_TAPER_STEP_FV_MARGIN 0
-#define GCPM_TAPER_STEP_CC_STEP 200000
+#define GCPM_TAPER_STEP_CC_STEP 100000
#define GCPM_TAPER_STEP_COUNT 5
-#define GCPM_TAPER_STEP_GRACE 5
+#define GCPM_TAPER_STEP_GRACE 10
#define GCPM_TAPER_STEP_VOLTAGE 0
#define GCPM_TAPER_STEP_INTERVAL_S 60