|
@@ -642,7 +642,7 @@ namespace MOTINOVA_Motor_Factory_Set
|
|
|
row.GetCell(9).SetCellValue(textBox_SMART_Acc.Text);
|
|
|
//第10行,第2列BOOT版本,第10列额定功率
|
|
|
row = sheet.GetRow(9);
|
|
|
- row.GetCell(1).SetCellValue(comboBox_Baudrate.SelectedIndex == 0 ? "V1.2.2" : "V2.0.0");
|
|
|
+ row.GetCell(1).SetCellValue(comboBox_Baudrate.SelectedIndex == 0 ? "V1.2.2 125K" : "V2.0.0 250K");
|
|
|
row.GetCell(9).SetCellValue(textBox_RatePower.Text + " W");
|
|
|
//第11行,第2列静态电压,第10列额定转速
|
|
|
row = sheet.GetRow(10);
|
|
@@ -691,11 +691,11 @@ namespace MOTINOVA_Motor_Factory_Set
|
|
|
//第22行,第2列温度保护,第10列前灯电压
|
|
|
row = sheet.GetRow(21);
|
|
|
row.GetCell(1).SetCellValue(textBox_NTC_Ptotect.Text + " ℃");
|
|
|
- row.GetCell(9).SetCellValue(comboBox_HeadLightVol.Text);
|
|
|
+ row.GetCell(9).SetCellValue(comboBox_HeadLightVol.Text.Contains("随电池") ? comboBox_HeadLightVol.Text + " " + textBox_Rate_Vol.Text + " V" : comboBox_HeadLightVol.Text);
|
|
|
//第23行,第2列码表,第10列后灯电压
|
|
|
row = sheet.GetRow(22);
|
|
|
row.GetCell(1).SetCellValue(comboBox_NoPBU.Text);
|
|
|
- row.GetCell(9).SetCellValue(comboBox_TailLightVol.Text);
|
|
|
+ row.GetCell(9).SetCellValue(comboBox_TailLightVol.Text.Contains("随电池") ? comboBox_TailLightVol.Text + " " + textBox_Rate_Vol.Text + " V" : comboBox_TailLightVol.Text);
|
|
|
//第24行,第2列轮胎周长,第10列启动值
|
|
|
row = sheet.GetRow(23);
|
|
|
row.GetCell(1).SetCellValue(textBox_WheelSize.Text + " cm");
|
|
@@ -870,6 +870,22 @@ namespace MOTINOVA_Motor_Factory_Set
|
|
|
textBox_Start_Min.Text = "350";//启动值下限
|
|
|
textBox_Start_Max.Text = "750";//启动值上限
|
|
|
}
|
|
|
+ else if (textBox_Model.Text.Contains("VR"))
|
|
|
+ {
|
|
|
+ textBox_Serial.Text = "2";//系列号
|
|
|
+ textBox_MaxCurrent.Text = "15";//限流
|
|
|
+ textBox_RatePower.Text = "250";//额定功率
|
|
|
+ textBox_RateSpeed.Text = "1200";//额定转速
|
|
|
+ textBox_Rate_Vol.Text = "36";//额定电压
|
|
|
+ textBox_NC_Current.Text = "1000";//空载电流
|
|
|
+ textBox_GasSpeedTh.Text = "1000";//指拨转速
|
|
|
+ textBox_Zero_Min.Text = "200";//零偏下限
|
|
|
+ textBox_Zero_Max.Text = "1800";//零偏上限
|
|
|
+ textBox_K_Min.Text = "0.25";//传感器标定值下限
|
|
|
+ textBox_K_Max.Text = "0.75";//传感器标定值下限
|
|
|
+ textBox_Start_Min.Text = "350";//启动值下限
|
|
|
+ textBox_Start_Max.Text = "750";//启动值上限
|
|
|
+ }
|
|
|
else if (textBox_Model.Text.Contains("PG"))
|
|
|
{
|
|
|
textBox_Serial.Text = "3";//系列号
|