Skip to content

Commit

Permalink
viomi: map: Calculated robot angle is off by 180°
Browse files Browse the repository at this point in the history
  • Loading branch information
depau committed Apr 29, 2021
1 parent 908c656 commit 3605d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/robots/viomi/ViomiMapParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class ViomiMapParser {

mapContents.path.points[mapContents.path.points.length - 2] -
mapContents.path.points[mapContents.path.points.length - 4]
) * 180 / Math.PI) + 90) % 360; //TODO: No idea why
) * 180 / Math.PI) + 270) % 360; //TODO: No idea why
}
}

Expand Down

0 comments on commit 3605d9b

Please sign in to comment.