Kaynağa Gözat

Sync all changes

molt 1 ay önce
ebeveyn
işleme
09e69a52a9

+ 1 - 62
memory/2025-04-28.md

@@ -1,62 +1 @@
-# Timing Belt Calculator - External Load Improvements
-
-## Issue Identified
-Current timing belt calculation program only considers gravity and friction forces, which is insufficient for real-world applications where external loads (cutting forces, fluid resistance, spring forces, etc.) are present.
-
-## Proposed Solutions
-
-### Short-term Improvement (Quick Implementation)
-1. Add "externalForce" parameter (N) to existing calculation
-2. Modify load torque calculation: `totalForce = gravityForce + frictionForce + externalForce`
-3. Support positive (resistance) and negative (assistance) values
-4. Add "externalTorque" parameter for direct torque loads
-
-### Long-term Improvement (Comprehensive Solution)
-1. **Application Type Selection**: 
-   - Vertical lifting
-   - Horizontal pushing/pulling  
-   - Rotational loads
-   - Custom scenarios
-
-2. **Load Component Breakdown**:
-   ```javascript
-   resistanceComponents: {
-       friction: 10,      // N
-       cuttingForce: 50,  // N  
-       springForce: 30,   // N
-       fluidDrag: 15,     // N
-       other: 0           // N
-   }
-   ```
-
-3. **Enhanced Calculation Formula**:
-   ```
-   Total Load Torque = [Gravity Component + Friction + ΣExternal Forces + Direct External Torque] × Pulley Radius ÷ Efficiency
-   
-   Where:
-   - Gravity Component = mass × gravity × cos(installationAngle)
-   - Friction = mass × gravity × frictionCoeff × sin(installationAngle)
-   - External Forces = user-defined various resistance forces
-   - Direct External Torque = torque directly acting on shaft
-   ```
-
-4. **Additional Features**:
-   - Dynamic load curves (varying loads at different positions/speeds)
-   - Application-specific safety factor recommendations
-   - Power requirement calculations
-
-## Implementation Priority
-- Short-term solution should be implemented first for immediate practical use
-- Long-term solution provides comprehensive engineering analysis capabilities
-
-## Files to Update
-- timing_belt_calculator.js (or equivalent calculation module)
-- UI component files for parameter input
-- Documentation files explaining new parameters
-
-## Git Commit Strategy
-- Create feature branch: `feature/external-load-support`
-- Implement short-term improvements first
-- Test with various external load scenarios
-- Merge when validated
-- Plan long-term improvements as separate development phase
+- 用户强调:保持积极向远程 Git 服务器同步所有更改的传统。

+ 1 - 1
memory/heartbeat-state.json

@@ -1 +1 @@
-{"lastMoltbookCheck":1706784228398}
+{"lastMoltbookCheck":1769944585000}

+ 2 - 2
servo_sizer/index.html

@@ -92,11 +92,11 @@
                     <li><strong>直接驱动</strong>: 适用于高精度直接耦合,如精密定位平台</li>
                     <li><strong>组合传动</strong>: 适用于复杂多级传动系统</li>
                 </ul>
-                <p style="margin-top: 10px; color: #666;">
+                <p style="margin-top: 10px; color: var(--text-secondary);">
                     <em>💡 提示: 安全系数建议值为1.2-2.0,惯量比通常为5-50。计算结果仅供参考,请结合具体产品规格进行选型。</em>
                 </p>
                 <p style="margin-top: 15px;">
-                    <a href="user_guide.html" target="_blank" style="color: #3498db; text-decoration: none; font-weight: bold;">
+                    <a href="user_guide.html" target="_blank" style="color: var(--button-primary); text-decoration: none; font-weight: bold;">
                         📖 查看完整使用说明
                     </a>
                 </p>

+ 3 - 2
servo_sizer/style.css

@@ -17,8 +17,8 @@ body.light-mode {
     --card-bg: #ffffff;
     --button-primary: #3b82f6;
     --button-primary-hover: #2563eb;
-    --button-secondary: #475569; /* 更深的按钮背景色,提高对比度 */
-    --button-secondary-hover: #334155;
+    --button-secondary: #64748b; /* 调整为中等灰色,提高对比度 */
+    --button-secondary-hover: #475569;
 }
 
 body.dark-mode {
@@ -104,6 +104,7 @@ body.dark-mode .theme-toggle:hover {
     padding: 1.5rem;
     background-color: var(--card-bg);
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
+    color: var(--text-primary);
 }
 
 .card h2 {