Skip to content
Snippets Groups Projects
Commit 17e2de8b authored by Jean Coquet's avatar Jean Coquet
Browse files

minor bug correction tentative

parent 87054c08
No related branches found
No related tags found
No related merge requests found
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Motion/HexapodNewport/src/HexapodNewport.cpp,v 1.12 2011-03-21 11:43:31 jean_coquet Exp $";
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Motion/HexapodNewport/src/HexapodNewport.cpp,v 1.13 2011-04-14 07:49:48 jean_coquet Exp $";
//+=============================================================================
//
// file : HexapodNewport.cpp
......@@ -13,9 +13,15 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Motion/Hexapod
//
// $Author: jean_coquet $
//
// $Revision: 1.12 $
// $Revision: 1.13 $
//
// $Log: not supported by cvs2svn $
// Revision 1.12 2011/03/21 11:43:31 jean_coquet
// Mode relatif :
// mise au point avec Y.Garreau SIXS
// Mode Relatif :
// On ne peut pas bouger simultanment une rotation et une translation (requete de Y.G. et signal dans la doc que le positionnement fait n'importe quoi)
//
// Revision 1.11 2011/03/17 15:39:13 jean_coquet
// added a new positionnig scheme : Absolute or Relative
// * added property to select 1 of them
......@@ -1020,8 +1026,25 @@ void HexapodNewport::try_to_move(void)
pos.positions[4] = attr_v_write;
pos.positions[5] = attr_w_write;
try
{
hwp->set_hexapod_positions (pos);
}
catch (Tango::DevFailed &e)
{
FATAL_STREAM << "HexapodNewport::try_to_move () caugth DevFailed ->" << e << endl;
this->nb_of_attr_to_write_count = 0;
throw (e);
}
catch (Tango::DevFailed &e)
{
FATAL_STREAM << "HexapodNewport::try_to_move () caugth (...)" << endl;
this->nb_of_attr_to_write_count = 0;
Tango::Except::throw_exception (
(const char *)"OPERATION_NOT_ALLOWED",
(const char *)"could not send new positions (...) caugth",
(const char *)"HexapodNewport::try_to_move");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment