TelescopeClient.hpp   TelescopeClient.hpp 
skipping to change at line 125 skipping to change at line 125
~TelescopeClientDummy(void) {} ~TelescopeClientDummy(void) {}
bool isConnected(void) const bool isConnected(void) const
{ {
return true; return true;
} }
bool prepareCommunication(void) bool prepareCommunication(void)
{ {
XYZ = XYZ * 31.0 + desired_pos; XYZ = XYZ * 31.0 + desired_pos;
const double lq = XYZ.lengthSquared(); const double lq = XYZ.lengthSquared();
if (lq > 0.0) if (lq > 0.0)
XYZ *= (1.0/sqrt(lq)); XYZ *= (1.0/std::sqrt(lq));
else else
XYZ = desired_pos; XYZ = desired_pos;
return true; return true;
} }
void telescopeGoto(const Vec3d &j2000Pos) void telescopeGoto(const Vec3d &j2000Pos)
{ {
desired_pos = j2000Pos; desired_pos = j2000Pos;
desired_pos.normalize(); desired_pos.normalize();
} }
bool hasKnownPosition(void) const bool hasKnownPosition(void) const
skipping to change at line 203 skipping to change at line 203
InterpolatedPosition interpolatedPosition; InterpolatedPosition interpolatedPosition;
virtual bool hasKnownPosition(void) const virtual bool hasKnownPosition(void) const
{ {
return interpolatedPosition.isKnown(); return interpolatedPosition.isKnown();
} }
Equinox equinox; Equinox equinox;
private slots: private slots:
void socketConnected(void);
void socketFailed(QAbstractSocket::SocketError socketError); void socketFailed(QAbstractSocket::SocketError socketError);
}; };
#endif // _TELESCOPE_HPP_ #endif // _TELESCOPE_HPP_
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/