瀏覽代碼

修改踏频传感器脉冲数和传动比。

****首批样机程序****
Deyauo 5 月之前
父節點
當前提交
9888a9c333

+ 6 - 0
.launches/empty_LP_MSPM0G3507_APP_Normal_20250107.launch

@@ -1,5 +1,11 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <launchConfiguration type="com.ti.ccstudio.debug.launchType.device.debugging">
+    <mapAttribute key="ccs.memoryview.format">
+        <mapEntry key="org.eclipse.cdt.debug.ui.memory.memorybrowser.MemoryBrowser@#$Texas Instruments XDS110 USB Debug Probe/CORTEX_M0P@#$0" value="32-Bit Hex - TI Style"/>
+    </mapAttribute>
+    <mapAttribute key="ccs.memoryview.pageexpr">
+        <mapEntry key="org.eclipse.cdt.debug.ui.memory.memorybrowser.MemoryBrowser@#$Texas Instruments XDS110 USB Debug Probe/CORTEX_M0P" value="@@0x000000"/>
+    </mapAttribute>
     <stringAttribute key="com.ti.ccstudio.debug.debugModel.ATTR_DEBUGGER_PROPERTIES.MSPM0G3507.ccxml.Texas Instruments XDS110 USB Debug Probe/CORTEX_M0P" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot; ?&gt;&#10;&lt;PropertyValues&gt;&#10;&#10;  &lt;property id=&quot;ConnectOnStartup&quot;&gt;&#10;    &lt;curValue&gt;1&lt;/curValue&gt;&#10;  &lt;/property&gt;&#10;&#10;  &lt;property id=&quot;EnableInstalledBreakpoint&quot;&gt;&#10;    &lt;curValue&gt;1&lt;/curValue&gt;&#10;  &lt;/property&gt;&#10;&#10;  &lt;property id=&quot;IgnoreSoftLaunchFailures&quot;&gt;&#10;    &lt;curValue&gt;0&lt;/curValue&gt;&#10;  &lt;/property&gt;&#10;&#10;  &lt;property id=&quot;FlashEraseSelection&quot;&gt;&#10;    &lt;curValue&gt;Erase MAIN memory sectors by range (specify below)&lt;/curValue&gt;&#10;  &lt;/property&gt;&#10;&#10;  &lt;property id=&quot;FlashEraseSectorsStartAddress&quot;&gt;&#10;    &lt;curValue&gt;00007000&lt;/curValue&gt;&#10;  &lt;/property&gt;&#10;&#10;  &lt;property id=&quot;FlashEraseSectorsEndAddress&quot;&gt;&#10;    &lt;curValue&gt;0001FFFF&lt;/curValue&gt;&#10;  &lt;/property&gt;&#10;&#10;&lt;/PropertyValues&gt;&#10;"/>
     <setAttribute key="com.ti.ccstudio.debug.debugModel.ATTR_HIDE_CONFIG_ELEMENT_TYPES">
         <setEntry value="BOARD"/>

+ 2 - 2
3.BasicFunction/Include/Cadence.h

@@ -23,7 +23,7 @@
  ****************************************/
 //#if (ASSIST_MODE == TORQUE_ASSIST)
 //力矩相关参数
-#define TORQUE_NUMBERS_PULSES           38  //24   //24 48 64(350W-bike)          //numbers of pulses per cycles
+#define TORQUE_NUMBERS_PULSES           30  //24   //24 48 64(350W-bike)          //numbers of pulses per cycles
 #define TORQUE_START_INTERVALTIME_MS    1000 // 250     //interveal time of detect valid pulses to start, ms
 #define TORQUE_NUMBERS_VALIDPULSE2START  1    // numbers of valid pulses that needed to start
 #define TORQUE_LF_RECORDTIME_MS         500  // time of Recording pulses per cycle, ms
@@ -35,7 +35,7 @@
 #define TORQUE_MAX_FREQUENCY            5    // Hz, human foot
 //#elif (ASSIST_MODE == CADENCE_ASSIST)
 //踏频相关参数
-#define CADENCE_NUMBERS_PULSES           12   //24 48 64(350W-bike)          //numbers of pulses per cycles
+#define CADENCE_NUMBERS_PULSES           30   //24 48 64(350W-bike)          //numbers of pulses per cycles
 #define CADENCE_START_INTERVALTIME_MS    5000 // 250     //interveal time of detect valid pulses to start, ms
 #define CADENCE_NUMBERS_VALIDPULSE2START 1    // numbers of valid pulses that needed to start
 #define CADENCE_LF_RECORDTIME_MS         500  // time of Recording pulses per cycle, ms

+ 1 - 1
4.BasicHardwSoftwLayer/2.BasicSoftwLayer/Include/bikeinformation.h

@@ -58,7 +58,7 @@
 #elif (MOTOR_ID_SEL == MOTOR_LUNGU_WELLING_HAL_POLE8_250W_517Ratio)
     #define ASS_BIKE_MECH_RATION        ((SLONG)(5.17*1000))   /**< Q10. 14.2-750W   16.17-350W */
 #else
-    #define ASS_BIKE_MECH_RATION        ((SLONG)(16.17*1000))   /**< Q10. 14.2-750W   16.17-350W */
+    #define ASS_BIKE_MECH_RATION        ((SLONG)(10.92*1000))   /**< Q10. 14.2-750W   16.17-350W */
 #endif
 
 #if (BIKE_SPEED_LIMIT_SEL == BIKE_SPEED_LIMIT_45)

+ 1 - 1
4.BasicHardwSoftwLayer/2.BasicSoftwLayer/Include/syspar.h

@@ -43,7 +43,7 @@ Update Time
 
 #define IPM_VOLTAGE_36V         0x0
 #define IPM_VOLTAGE_48V         0x1
-#define IPM_VOLTAGE_SEL         IPM_VOLTAGE_48V
+#define IPM_VOLTAGE_SEL         IPM_VOLTAGE_36V
 
 #define BIKE_TYPE_R219          0x0
 #define BIKE_TYPE_R168          0x01

+ 2 - 2
4.BasicHardwSoftwLayer/2.BasicSoftwLayer/Include/user.h

@@ -83,9 +83,9 @@ Update Time
 #elif (IPM_POWER_SEL == IPM_POWER_350W_9G)
 #define MOTOR_ID_SEL   MOTOR_LUNGU_WELLING_HAL_POLE8_350W_958Ratio
 #elif ((IPM_POWER_SEL == IPM_POWER_250W_6G)||(IPM_POWER_SEL == IPM_POWER_350W_6G))
-#define MOTOR_ID_SEL  MOTOR_PEGASI_PLUS_NEW
+#define MOTOR_ID_SEL  MOTOR_PEGASI_NEW
 #else
-#define MOTOR_ID_SEL MOTOR_PEGASI_PLUS_NEW
+#define MOTOR_ID_SEL MOTOR_PEGASI_NEW
 #endif
 
 /*======================================================================*