Skip to content

Commit

Permalink
negative one added to _set_position (#54)
Browse files Browse the repository at this point in the history
* negative one added to _set_position

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* changelog

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
kameyer226 and pre-commit-ci[bot] authored Mar 25, 2022
1 parent 6ef7cd6 commit 4ac710d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

## [Unreleased]

## [2022.3.0]

## Changed
- A factor of -1 was incorporated into the _set_position method to correct
for an error in reporting destination.


## [2022.2.0]

## Added
Expand Down
2 changes: 1 addition & 1 deletion yaqd_wright/_wright_fuyu_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _set_position(self, position):
) # NOTE the -1
self._serial_port.write(f"M {self._motornum} {step_position}\n".encode())
self._state["position"] += (
step_position * 360 / (self._steps_per_rotation * self._microstep)
step_position * 360 / (self._steps_per_rotation * self._microstep) * (-1) # NOTE
)

def direct_serial_write(self, message):
Expand Down

0 comments on commit 4ac710d

Please sign in to comment.