Compare commits

...

2 Commits

Author SHA1 Message Date
weiting2 014a5ac628 a better sti calibration 2020-11-19 18:32:08 +08:00
weiting2 bf672b2632 a better sti calibration 2020-11-19 17:20:54 +08:00
2 changed files with 12 additions and 7 deletions
@@ -23,7 +23,12 @@ static uint16_t UserCode2StiCode(uint16_t amp, uint8_t positive_ch){
sti_code = StiCaliTable.n_ch.coefficient * real_amp + StiCaliTable.n_ch.offset;
}
sti_code = sti_code / 10000;
sti_code = (sti_code + 5000) / 10000;
if(sti_code < 1){
sti_code = 1;
}
return (uint16_t) (sti_code);
}
@@ -3,15 +3,15 @@
#define VERSION_DATE
#define VERSION_DATE_YEAR 20
#define VERSION_DATE_MONTH 7
#define VERSION_DATE_DAY 20
#define VERSION_DATE_HOUR 17
#define VERSION_DATE_MINUTE 48
#define VERSION_DATE_MONTH 11
#define VERSION_DATE_DAY 19
#define VERSION_DATE_HOUR 18
#define VERSION_DATE_MINUTE 32
// this is NOT the version hash !!
// it's the last version hash
#define VERSION_HASH 81d5d86890d1da5dfb3ccc7e1756261c3ecbf485
#define VERSION_GIT_BRANCH Neulive20_developement_linux
#define VERSION_HASH bf672b26327776ad4612260ce8713ba917411a7d
#define VERSION_GIT_BRANCH Neulive20_hostTest
static void get_board_name(char *board_name_ch, uint8 *board_name_int, uint8 name_size){
uint8 name_offset = 18;