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

added DefinePosition support

parent 175bc2f0
No related branches found
No related tags found
No related merge requests found
static const char *RcsId = "$Id: XPSGroup.cpp,v 1.5 2011-06-17 14:43:38 jean_coquet Exp $";
static const char *RcsId = "$Id: XPSGroup.cpp,v 1.6 2011-06-17 14:51:05 jean_coquet Exp $";
//+=============================================================================
//
// file : XPSGroup.cpp
......@@ -13,10 +13,10 @@ static const char *RcsId = "$Id: XPSGroup.cpp,v 1.5 2011-06-17 14:43:38 jean_coq
//
// $Author: jean_coquet $
//
// $Revision: 1.5 $
// $Revision: 1.6 $
//
// $Revision: 1.5 $
// $Date: 2011-06-17 14:43:38 $
// $Revision: 1.6 $
// $Date: 2011-06-17 14:51:05 $
//
// SVN only:
// $HeadURL: $
......@@ -24,6 +24,9 @@ static const char *RcsId = "$Id: XPSGroup.cpp,v 1.5 2011-06-17 14:43:38 jean_coq
// CVS only:
// $Source: /users/chaize/newsvn/cvsroot/Motion/Axis/XPSGroup/src/XPSGroup.cpp,v $
// $Log: not supported by cvs2svn $
// Revision 1.5 2011/06/17 14:43:38 jean_coquet
// added trajectory support (not finished, not tested, experiemental)
//
// Revision 1.4 2011/05/26 09:12:29 jean_coquet
// suppression de std:cout
//
......@@ -753,14 +756,24 @@ void XPSGroup::write_trajectory(Tango::WAttribute &attr)
DEBUG_STREAM << "XPSGroup::define_position(): entering... !" << endl;
// Add your own code to control device here
if (!init_device_done || properties_missing)
return;
size_t len = argin->length();
if (len != attr_names.size ())
{
ERROR_STREAM << "XPSGroup::define_position NOT_YET_IMPLEMENTED ask developper for implementation" << endl;
ERROR_STREAM << "DATA_OUT_OF_RANGE must give all positions of the group in 1 shot" << endl;
Tango::Except::throw_exception (
(const char *) "NOT_YET_IMPLEMENTED",
(const char *) "ask developper for implementation",
(const char *)"DATA_OUT_OF_RANGE",
(const char *)"must give the all positions of the group in 1 shot",
(const char *)"XPSGroup4Axes::define_position");
}
xpsg::positions_t pos;
for (size_t i = 0; i < argin->length (); i++)
pos.positions.push_back ((*argin) [i]);
post_msg (*hwp, xpsg::GROUP_DEFINE_POSITIONS, 1000, false, pos);
}
//+------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment