2014 sift / Mbed 2 deprecated TVDctrller2017_brdRev1_PandA

Dependencies:   mbed

Fork of TVDctrller2017_brdRev1_ver6 by 2014 sift

Revision:
30:c596a0f5d685
Parent:
28:47e9531a3a9d
Child:
31:042c08a7434f
diff -r a51cb2cf22ae -r c596a0f5d685 TVDCTRL.h
--- a/TVDCTRL.h	Sat Jul 08 06:20:29 2017 +0000
+++ b/TVDCTRL.h	Fri Jul 21 10:20:57 2017 +0000
@@ -28,7 +28,7 @@
 const int MAX_MOTOR_TORQUE_POWER            = (int)(45.0 / LSB_MOTOR_TORQUE);               //Motor max torque:45.0[Nm](digital value:3000)
 const int MAX_MOTOR_TORQUE_REGENERATIVE     = (int)(-15.0 / LSB_MOTOR_TORQUE);              //Motor max torque:-15.0[Nm](digital value:1000)
 const int MAX_OUTPUT_TORQUE_POWER           = (int)(MAX_MOTOR_TORQUE_POWER * 1.0);          //出力最大値
-const int MAX_OUTPUT_TORQUE_REGENERATIVE    = (int)(MAX_MOTOR_TORQUE_REGENERATIVE * 1.0);   //出力最大値
+const int MAX_OUTPUT_TORQUE_REGENERATIVE    = (int)(MAX_MOTOR_TORQUE_REGENERATIVE * 0.0);   //出力最大値
 const int MAX_DISTRIBUTION_TORQUE           = (int)(15.0 / LSB_MOTOR_TORQUE);               //出力MAX時 (digital value:1000)
 
 const int MIN_INNERWHEEL_MOTOR_TORQUE   = (int)(2.0 / LSB_MOTOR_TORQUE);     //内輪側モーターの最低トルク(MITSUBA社MC仕様対策)
@@ -42,8 +42,9 @@
 const int APS_OVERRIDE25            =(int)(APS_VALID_RANGE * 0.25 + APS_MIN_POSITION);          //ブレーキオーバーライドの閾値
 const int APS_OVERRIDE05            =(int)(APS_VALID_RANGE * 0.05 + APS_MIN_POSITION);          //ブレーキオーバーライドの閾値
 
-const int BRK_ON_VOLTAGE            =(int)(0xFFFF/3.3 * 2.20);    //ブレーキON時電圧
-const int BRK_OFF_VOLTAGE           =(int)(0xFFFF/3.3 * 1.65);     //ブレーキOFF時電圧
+//7月10日車検対策用突貫工事センサ配 後日変更
+const int BRK_ON_VOLTAGE            =(int)(0xFFFF/3.3 * 1.65);    //ブレーキON時電圧
+const int BRK_OFF_VOLTAGE           =(int)(0xFFFF/3.3 * 3.3);     //ブレーキOFF時電圧
 
 const int ERROR_TOLERANCE           =(int)(0xFFFF * 0.1);    //センサ値誤差許容値