update calibration data
This commit is contained in:
@@ -20,14 +20,21 @@ source $PROJECT_DIR/caldata
|
||||
for key in ${!calMap[*]};do
|
||||
projName=df_datalink_$key
|
||||
id=$(echo "$key" | grep -o -E '[0-9]+')
|
||||
type=$(echo "$key" | grep -o -E '(LJ)|(JG)')
|
||||
echo "Creating <$projName>..."
|
||||
cp -rL $PROJECT_DIR/df_datalink_sp/src $DST_DIR/$projName
|
||||
cd $DST_DIR/$projName
|
||||
|
||||
# subtitite ID
|
||||
sed -i'' "s/#define PHY_DEVICE_ID 0/#define PHY_DEVICE_ID 0x$id/g" ./config/app_config.h
|
||||
|
||||
# subtitute table
|
||||
# substitute ID
|
||||
if [ type == "LJ" ]; then
|
||||
sed -i'' "s/#define PHY_DEVICE_ID 0/#define PHY_DEVICE_ID (0x$id | 0x80)/g" ./config/app_config.h
|
||||
elif [ type == "JG" ]; then
|
||||
sed -i'' "s/#define PHY_DEVICE_ID 0/#define PHY_DEVICE_ID (0x$id | 0x00)/g" ./config/app_config.h
|
||||
else
|
||||
echo "Unrecognized node Type [$type] ID [$id]"
|
||||
exit 1
|
||||
fi
|
||||
# substitute table
|
||||
sed -i'' "/^const uint16_t antCalTable\[L1_FRAME_MAX_HOPS\]\[L1_ANT_NUM_CH\] =/{
|
||||
:table
|
||||
N
|
||||
|
||||
Reference in New Issue
Block a user