fix: 修复旋转编码器地址与控制问题
This commit is contained in:
		@@ -6,7 +6,7 @@ namespace Peripherals.RotaryEncoderClient;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class RotaryEncoderCtrlAddr
 | 
					class RotaryEncoderCtrlAddr
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public const UInt32 BASE = 0xB0_00_00_20;
 | 
					    public const UInt32 BASE = 0xB0_00_00_30;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public const UInt32 ENABLE = BASE;
 | 
					    public const UInt32 ENABLE = BASE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -258,6 +258,8 @@ watchEffect(() => {
 | 
				
			|||||||
watch(
 | 
					watch(
 | 
				
			||||||
  () => rotationStep.value,
 | 
					  () => rotationStep.value,
 | 
				
			||||||
  (newStep, oldStep) => {
 | 
					  (newStep, oldStep) => {
 | 
				
			||||||
 | 
					    if (!props.enableDigitalTwin) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (newStep > oldStep) {
 | 
					    if (newStep > oldStep) {
 | 
				
			||||||
      rotataryEncoderStore.rotateOnce(
 | 
					      rotataryEncoderStore.rotateOnce(
 | 
				
			||||||
        props.encoderNumber,
 | 
					        props.encoderNumber,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user