@@ -41,7 +41,7 @@ protected AbsoluteMotor(IPoweredUpProtocol protocol, byte hubId, byte portId)
4141 /// <param name="endState">After time has expired, either Float, Hold or Brake.</param>
4242 /// <param name="profile">The speed profiles used (as flags) for acceleration and deceleration</param>
4343 /// <returns></returns>
44- public async Task < PortFeedback > GotoAbsolutePositionAsync ( int absolutePosition , sbyte speed , byte maxPower , SpecialSpeed endState , SpeedProfiles profile )
44+ public async Task < PortFeedback > GotoPositionAsync ( int absolutePosition , sbyte speed , byte maxPower , SpecialSpeed endState , SpeedProfiles profile )
4545 {
4646 AssertValidSpeed ( speed , nameof ( speed ) ) ;
4747 AssertValidMaxPower ( maxPower , nameof ( maxPower ) ) ;
@@ -78,7 +78,7 @@ public async Task<PortFeedback> GotoAbsolutePositionAsync(int absolutePosition,
7878 /// <param name="endState">After time has expired, either Float, Hold or Brake.</param>
7979 /// <param name="profile">The speed profiles used (as flags) for acceleration and deceleration</param>
8080 /// <returns></returns>
81- public async Task < PortFeedback > GotoAbsolutePositionAsync ( int absolutePosition1 , int absolutePosition2 , sbyte speed , byte maxPower , SpecialSpeed endState , SpeedProfiles profile )
81+ public async Task < PortFeedback > GotoPositionAsync ( int absolutePosition1 , int absolutePosition2 , sbyte speed , byte maxPower , SpecialSpeed endState , SpeedProfiles profile )
8282 {
8383 AssertValidSpeed ( speed , nameof ( speed ) ) ;
8484 AssertValidMaxPower ( maxPower , nameof ( maxPower ) ) ;
@@ -102,7 +102,7 @@ public async Task<PortFeedback> GotoAbsolutePositionAsync(int absolutePosition1,
102102 return response ;
103103 }
104104
105- private async Task < int > GetAbsolutePositionAsync ( )
105+ private async Task < int > GetPositionAsync ( )
106106 {
107107 AssertIsConnected ( ) ;
108108
@@ -125,7 +125,7 @@ public async Task GotoRealZeroAsync()
125125 {
126126 AssertIsConnected ( ) ;
127127
128- var currentPosition = await GetAbsolutePositionAsync ( ) ;
128+ var currentPosition = await GetPositionAsync ( ) ;
129129
130130 sbyte speed = 5 ;
131131
0 commit comments