...
This commit is contained in:
@@ -93,7 +93,8 @@ std::string_view AsibFM700Hardware::id() const
|
||||
|
||||
AsibFM700Hardware::error_t AsibFM700Hardware::setPos(AsibFM700Hardware::axes_pos_t pos)
|
||||
{
|
||||
double X = pos.x, Y = pos.y;
|
||||
// according to hardware configuration (encoders pins (Eddy said)) X is DEC-axis and Y is HA-axis
|
||||
double X = pos.y, Y = pos.x;
|
||||
auto err = static_cast<AsibFM700HardwareErrorCode>(Mount.moveTo(&X, &Y));
|
||||
|
||||
return err;
|
||||
@@ -115,8 +116,9 @@ AsibFM700Hardware::error_t AsibFM700Hardware::getPos(AsibFM700Hardware::axes_pos
|
||||
|
||||
pos.time_point = time_point_t{std::chrono::duration_cast<time_point_t::duration>(secs)};
|
||||
|
||||
pos.x = data.encposition.X;
|
||||
pos.y = data.encposition.Y;
|
||||
// according to hardware configuration (encoders pins (Eddy said)) X is DEC-axis and Y is HA-axis
|
||||
pos.x = data.encposition.Y;
|
||||
pos.y = data.encposition.X;
|
||||
}
|
||||
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user