Changeset 20972
- Timestamp:
- 12/30/07 15:03:39 (8 months ago)
- Files:
-
- PyJuggler/trunk/ChangeLog (modified) (1 diff)
- PyJuggler/trunk/configure.ac (modified) (1 diff)
- PyJuggler/trunk/dist/__init__.py (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_Analog.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_AnalogData.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_AnalogProxy.cpp (modified) (3 diffs)
- PyJuggler/trunk/src/gadget/_BaseDeviceInterface.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_CommandProxy.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_DigitalData.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_DigitalProxy.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_KeyboardMouse.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_KeyboardMouseProxy.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_Position.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_PositionData.cpp (modified) (2 diffs)
- PyJuggler/trunk/src/gadget/_PositionProxy.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_String.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_StringData.cpp (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_StringProxy.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PyJuggler/trunk/ChangeLog
r20963 r20972 1 1 DATE AUTHOR CHANGE 2 2 ----------- ----------- ------------------------------------------------------- 3 Dec-30-2007 patrick Updated for Gadgeteer 1.3.18. 4 NEW VERSION: 1.3.8 3 5 Dec-13-2007 patrick Removed vpr.ReturnStatus. 4 6 NEW VERSION: 1.3.7 PyJuggler/trunk/configure.ac
r20938 r20972 414 414 [AC_MSG_ERROR([*** JCCL is required for PyJuggler ***])]) 415 415 SNX_PATH([1.3.6], , [AC_MSG_ERROR([*** Sonix is required for PyJuggler ***])]) 416 GADGETEER_PATH([1.3. 9], ,416 GADGETEER_PATH([1.3.18], , 417 417 [AC_MSG_ERROR([*** Gadgeteer is required for PyJuggler ***])]) 418 418 VRJUGGLER_PATH([2.3.11], , PyJuggler/trunk/dist/__init__.py
r20963 r20972 6 6 __all__ = ["vrj", "cluster", "gadget", "snx", "jccl", "vpr"] 7 7 __build__ = 1 8 __version__ = '1.3. 7.%d' % __build__8 __version__ = '1.3.8.%d' % __build__ 9 9 __date__ = string.join(string.split('$Date$')[1:3], ' ') 10 10 __author__ = 'Patrick Hartling <patrick@infiscape.com>' PyJuggler/trunk/src/gadget/_Analog.cpp
r20403 r20972 190 190 "Returns the current stable sample buffers for this device." 191 191 ) 192 .def("normalize", &gadget::Analog::normalize, 193 "normalize(float) -> float\n" 194 "Given a value that will range from [min() <= n <= max()], this\n" 195 "returns a value that is normalized to the range [0,1].") 196 .def("getMin", &gadget::Analog::getMin) 197 .def("getMax", &gadget::Analog::getMax) 192 198 .staticmethod("create") 193 199 .staticmethod("getInputTypeName") PyJuggler/trunk/src/gadget/_AnalogData.cpp
r19730 r20972 28 28 .def("setTime", 29 29 (void (gadget::InputData::*)(const vpr::Interval&)) &gadget::InputData::setTime) 30 .def("getTime", &gadget::InputData::getTime) 30 .def("getTime", &gadget::InputData::getTime, 31 return_value_policy<copy_const_reference>()) 31 32 ; 32 33 } PyJuggler/trunk/src/gadget/_AnalogProxy.cpp
r20403 r20972 222 222 &pyj::gadget_AnalogProxy_Wrapper::default_updateData, 223 223 "updateData()\n" 224 "Updates the cached data copy from the device." 224 "Updates the cached data copy from the device and the normalized\n" 225 "form of that data." 225 226 ) 226 227 .def("updateDataIfNeeded", &gadget::Proxy::updateDataIfNeeded, … … 277 278 .def("getData", &gadget::AnalogProxy::getData, 278 279 "getData() -> float\n" 279 "Gets the current analog data value." 280 "Gets the current normalized analog data value. This value will\n" 281 "be in the range [0.0,1.0]." 282 ) 283 .def("getRawData", &gadget::AnalogProxy::getRawData, 284 "getData() -> float\n" 285 "Gets the current raw analog data value. This is the value read\n" 286 "direcctly from the device without perfomring any normalization." 280 287 ) 281 288 .def("getAnalogPtr", &gadget::AnalogProxy::getAnalogPtr, … … 291 298 ) 292 299 .def("getName", &gadget::Proxy::getName, 300 return_value_policy<copy_const_reference>(), 293 301 "getName() -> string object\n" 294 302 "Gets the name of the proxy." PyJuggler/trunk/src/gadget/_BaseDeviceInterface.cpp
r19730 r20972 86 86 ) 87 87 .def("getProxyName", &gadget::BaseDeviceInterface::getProxyName, 88 return_value_policy<copy_const_reference>(), 88 89 "getProxyName() -> string object\n" 89 90 "Returns the name of the proxy." PyJuggler/trunk/src/gadget/_CommandProxy.cpp
r20403 r20972 296 296 ) 297 297 .def("getName", &gadget::Proxy::getName, 298 return_value_policy<copy_const_reference>(), 298 299 "getName() -> string object\n" 299 300 "Gets the name of the proxy." PyJuggler/trunk/src/gadget/_DigitalData.cpp
r19730 r20972 28 28 .def("setTime", 29 29 (void (gadget::InputData::*)(const vpr::Interval&)) &gadget::InputData::setTime) 30 .def("getTime", &gadget::InputData::getTime) 30 .def("getTime", &gadget::InputData::getTime, 31 return_value_policy<copy_const_reference>()) 31 32 ; 32 33 } PyJuggler/trunk/src/gadget/_DigitalProxy.cpp
r20403 r20972 306 306 ) 307 307 .def("getName", &gadget::Proxy::getName, 308 return_value_policy<copy_const_reference>(), 308 309 "getName() -> string object\n" 309 310 "Gets the name of the proxy." PyJuggler/trunk/src/gadget/_KeyboardMouse.cpp
r20403 r20972 158 158 ) 159 159 .def("getSyncTime", &gadget::KeyboardMouse::getSyncTime, 160 return_value_policy<copy_const_reference>(), 160 161 "getSyncTime -> vpr.Interval object\n" 161 162 "Gets the interval that will be used for synchronization while\n" PyJuggler/trunk/src/gadget/_KeyboardMouseProxy.cpp
r20403 r20972 317 317 .def("getElementType", &gadget::KeyboardMouseProxy::getElementType) 318 318 .def("getName", &gadget::Proxy::getName, 319 return_value_policy<copy_const_reference>(), 319 320 "getName() -> string object\n" 320 321 "Gets the name of the proxy." PyJuggler/trunk/src/gadget/_Position.cpp
r20403 r20972 157 157 .def("getPositionData", &gadget::Position::getPositionData, 158 158 (args("devNum") = 0), 159 return_value_policy<copy_const_reference>(), 159 160 "getPositionData(devNum = 0) -> gadget.PositionData object\n" 160 161 "Returns positional data.\n" PyJuggler/trunk/src/gadget/_PositionData.cpp
r19730 r20972 22 22 .def(init<const gadget::PositionData&>()) 23 23 .def_readwrite("mPosData", &gadget::PositionData::mPosData) 24 .def("getPosition", &gadget::PositionData::getPosition) 24 .def("getPosition", &gadget::PositionData::getPosition, 25 return_value_policy<copy_const_reference>()) 25 26 .def("setPosition", &gadget::PositionData::setPosition) 26 27 .def("setTime", … … 28 29 .def("setTime", 29 30 (void (gadget::InputData::*)(const vpr::Interval&)) &gadget::InputData::setTime) 30 .def("getTime", &gadget::InputData::getTime) 31 .def("getTime", &gadget::InputData::getTime, 32 return_value_policy<copy_const_reference>()) 31 33 ; 32 34 } PyJuggler/trunk/src/gadget/_PositionProxy.cpp
r20403 r20972 306 306 ) 307 307 .def("getName", &gadget::Proxy::getName, 308 return_value_policy<copy_const_reference>(), 308 309 "getName() -> string object\n" 309 310 "Gets the name of the proxy." PyJuggler/trunk/src/gadget/_String.cpp
r20403 r20972 156 156 .def("getStringData", &gadget::String::getStringData, 157 157 (args("devNum") = 0), 158 return_value_policy<copy_const_reference>(), 158 159 "getStringData(devNum = 0) -> gadget.StringData object\n" 159 160 "Returns string data.\n" PyJuggler/trunk/src/gadget/_StringData.cpp
r19730 r20972 28 28 .def("setTime", 29 29 (void (gadget::InputData::*)(const vpr::Interval&)) &gadget::InputData::setTime) 30 .def("getTime", &gadget::InputData::getTime) 30 .def("getTime", &gadget::InputData::getTime, 31 return_value_policy<copy_const_reference>()) 31 32 ; 32 33 } PyJuggler/trunk/src/gadget/_StringProxy.cpp
r20403 r20972 294 294 ) 295 295 .def("getName", &gadget::Proxy::getName, 296 return_value_policy<copy_const_reference>(), 296 297 "getName() -> string object\n" 297 298 "Gets the name of the proxy."
