Commit Graph

27 Commits

Author SHA1 Message Date
Torsten Bögershausen 8deb21c463 Deprecated constructor "asynPortDriver" since asyn R4.32.0
The asyn module make the constructor
asynPortDriver::asynPortDriver(const char *portNameIn, int maxAddrIn,
           int paramTableSize, int interfaceMask, int interruptMask,
           int asynFlags, int autoConnect, int priority, int stackSize)

obsolete in R4.32.0, the more modern version should be used, which does
not have the parameter paramTableSize.
Using a modern version of asyn for the motor gives a compiler warning.
As I don't like compiler warnings, add a #ifdef construct to suppress it
for asyn > R4.32, and still allow to compile agains asyn >= R4.32
2018-10-11 11:07:08 +02:00
Matthew Pearson 8229bb7658 Fix issue with power being left on when using autoPower option in asynMotorController. This could happen if the motor doesn't move because it's already in position, so the poller doesn't detect a move. 2017-09-29 11:36:59 -04:00
Vintar Rok 7ee34a791b Velocity, baseVelocity and acceleration read only when needed. Fix for #37 2016-08-22 09:59:03 +02:00
MarkRivers 102f74b584 Changed resolution, offset and direction parameters from being profile move parameters to being general parameters that any driver can have access to 2015-03-21 21:22:24 +00:00
mp49 36dfab4a78 MotorSrc: add parameters to asynMotorController to deal with automatic amplifier control via setClosedLoop. The amplifier enable is done in the writeFloat64 function with a configurable delay, and the disable is implemented in the poller function in asynMotorController. Added utilty functions to asynMotorAxis. Also add a parameter to use in the derived classes for post move delays. An example of this has been implemented in the motorSimDriver.cpp. Add example database for automatic amplifier control. 2015-03-09 20:19:53 +00:00
MarkRivers d6b6ec6187 Added profileMoveMode 2014-05-22 21:53:45 +00:00
MarkRivers d141d7814b Add destructor 2014-03-12 18:02:51 +00:00
MarkRivers 39e9007f65 Fixed location of #include <epicsExport.h> to allow building on WIN32 dynamically 2013-02-18 19:31:17 +00:00
MarkRivers c1a91c3863 Removed tabs 2012-10-09 14:40:34 +00:00
mp49 13d616b139 motor: adding two IOC shell functions to asynMotorController to enable changing the polling rates at runtime via the IOC shell. 2012-08-03 15:00:49 +00:00
MarkRivers 58e5f5668e Bug fix: check if pAxis is null in several places 2012-07-03 17:13:01 +00:00
MarkRivers c7ce0950cb Fixed comment 2012-03-04 16:51:01 +00:00
MarkRivers b1905c82e2 Added new convenience functions for communicating with controllers over asynOctet ports 2012-03-02 18:52:24 +00:00
MarkRivers 3950116f6f Added implementation of asynMotorController::report.
It calls the report function for each axis, and then the base class asynReportDriver::report.

asynMotorController::writeInt32 and writeFloat64 now call the appropriate new axis functions 
(e.g. setHighLimit, setPGain) etc. for those functions.  

asynMotoroController::writeInt32 can call the new controller function setDeferredMoves.  
There is a base class implementation of setDeferredMoves.  
This currently does nothing, but in the future it could implement deferred moves for 
those controllers that simply need to issue a move to each axis.
2012-03-01 19:51:07 +00:00
MarkRivers 5af8dc064d Removed iostream function calls, don't exist on vxWorks-68040 2012-02-11 00:00:59 +00:00
MarkRivers 18ee205447 Fixed comment 2011-09-18 22:33:01 +00:00
Ron Sluiter 4c7bbdc539 VxWorks 5.5.2 DOES support iostream. Backing out -r 13350 changes. 2011-08-30 17:43:33 +00:00
Ron Sluiter 757a5e20b4 VxWorks 5.5.2 does not support iostream. Replaced iostream calls with asynPrint and errlogPrintf calls. 2011-08-05 19:33:07 +00:00
mp49 a6f645919e motor: implemented framework for moveToHome functionality in model 3 asyn base classes. 2011-07-29 17:39:29 +00:00
MarkRivers a0951feaea Fixed comment 2011-07-21 17:08:31 +00:00
MarkRivers f32a88fe6c Initialize profileExecuteState_ 2011-04-08 03:48:55 +00:00
MarkRivers f5ea0c50d0 Added currentPoint, abortProfile, and readFloat64Array 2011-04-07 03:30:39 +00:00
MarkRivers 8e434d2bb3 Worked on support for profile moves 2011-04-05 22:46:20 +00:00
MarkRivers b814f62ae9 Added profileNumReadbacks 2011-04-04 21:53:32 +00:00
MarkRivers 1d637741a8 Added shuttingDown_ for epicsAtExit; changes for profile moves 2011-04-03 18:57:56 +00:00
MarkRivers 0a3dc5c215 Changes for profile moves 2011-04-02 15:08:00 +00:00
MarkRivers c92f7d7518 Broke asynMotorDriver into asynMotorController and asynMotorAxis 2011-04-01 20:00:31 +00:00