Compare commits

...

8 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
weiting2 6e9acfda78 [on sell] modify get_date script for linux version CCS 2020-07-20 17:48:14 +08:00
weiting2 81d5d86890 [on sell] TODO: modify get_date script for linux version CCS 2020-07-20 17:42:35 +08:00
weiting2 0c8c92dc83 [on sell] TODO: modify get_date script for linux version CCS 2020-07-20 17:17:50 +08:00
weiting2 308de54833 Merge remote-tracking branch 'origin/Neulive20_developement_linux' into Neulive20_developement_linux 2020-07-20 17:17:34 +08:00
weiting2 e4c999b8c7 [on sell] TODO: modify get_date script for linux version CCS 2020-07-20 17:17:22 +08:00
weiting2 5c0c2cc9a5 [WARNING] do NOT use linux version CCS on simple central.
DLE can not enable on linux CCS
2020-07-20 16:12:17 +08:00
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#folder=$($path | awk -F"/" '{$NF}')
folder=$(basename "$(pwd)")
if [ "$folder" == "bioprocc2650" ]; then
if [ "$folder" == "ti" ] ; then
year=$(date +%-y)
month=$(date +%-m)
day=$(date +%-d)
@@ -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 9
#define VERSION_DATE_HOUR 17
#define VERSION_DATE_MINUTE 7
#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 b19b8189278e6ef6b9d9db3b7bc8f6f9df565f05
#define VERSION_GIT_BRANCH Neulive2.0_developement
#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;