Changeset 20972

Show
Ignore:
Timestamp:
12/30/07 15:03:39 (8 months ago)
Author:
patrick
Message:

Updated for Gadgeteer 1.3.18. Rolled the PyJuggler? version to 1.3.8.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PyJuggler/trunk/ChangeLog

    r20963 r20972  
    11DATE        AUTHOR      CHANGE 
    22----------- ----------- ------------------------------------------------------- 
     3Dec-30-2007 patrick     Updated for Gadgeteer 1.3.18. 
     4                        NEW VERSION: 1.3.8 
    35Dec-13-2007 patrick     Removed vpr.ReturnStatus. 
    46                        NEW VERSION: 1.3.7 
  • PyJuggler/trunk/configure.ac

    r20938 r20972  
    414414              [AC_MSG_ERROR([*** JCCL is required for PyJuggler ***])]) 
    415415SNX_PATH([1.3.6], , [AC_MSG_ERROR([*** Sonix is required for PyJuggler ***])]) 
    416 GADGETEER_PATH([1.3.9], , 
     416GADGETEER_PATH([1.3.18], , 
    417417               [AC_MSG_ERROR([*** Gadgeteer is required for PyJuggler ***])]) 
    418418VRJUGGLER_PATH([2.3.11], , 
  • PyJuggler/trunk/dist/__init__.py

    r20963 r20972  
    66__all__     = ["vrj", "cluster", "gadget", "snx", "jccl", "vpr"] 
    77__build__   = 1 
    8 __version__ = '1.3.7.%d' % __build__ 
     8__version__ = '1.3.8.%d' % __build__ 
    99__date__    = string.join(string.split('$Date$')[1:3], ' ') 
    1010__author__  = 'Patrick Hartling <patrick@infiscape.com>' 
  • PyJuggler/trunk/src/gadget/_Analog.cpp

    r20403 r20972  
    190190           "Returns the current stable sample buffers for this device." 
    191191      ) 
     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) 
    192198      .staticmethod("create") 
    193199      .staticmethod("getInputTypeName") 
  • PyJuggler/trunk/src/gadget/_AnalogData.cpp

    r19730 r20972  
    2828      .def("setTime", 
    2929           (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>()) 
    3132   ; 
    3233} 
  • PyJuggler/trunk/src/gadget/_AnalogProxy.cpp

    r20403 r20972  
    222222           &pyj::gadget_AnalogProxy_Wrapper::default_updateData, 
    223223           "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." 
    225226      ) 
    226227      .def("updateDataIfNeeded", &gadget::Proxy::updateDataIfNeeded, 
     
    277278      .def("getData", &gadget::AnalogProxy::getData, 
    278279           "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." 
    280287      ) 
    281288      .def("getAnalogPtr", &gadget::AnalogProxy::getAnalogPtr, 
     
    291298      ) 
    292299      .def("getName", &gadget::Proxy::getName, 
     300           return_value_policy<copy_const_reference>(), 
    293301           "getName() -> string object\n" 
    294302           "Gets the name of the proxy." 
  • PyJuggler/trunk/src/gadget/_BaseDeviceInterface.cpp

    r19730 r20972  
    8686      ) 
    8787      .def("getProxyName", &gadget::BaseDeviceInterface::getProxyName, 
     88           return_value_policy<copy_const_reference>(), 
    8889           "getProxyName() -> string object\n" 
    8990           "Returns the name of the proxy." 
  • PyJuggler/trunk/src/gadget/_CommandProxy.cpp

    r20403 r20972  
    296296      ) 
    297297      .def("getName", &gadget::Proxy::getName, 
     298           return_value_policy<copy_const_reference>(), 
    298299           "getName() -> string object\n" 
    299300           "Gets the name of the proxy." 
  • PyJuggler/trunk/src/gadget/_DigitalData.cpp

    r19730 r20972  
    2828     .def("setTime", 
    2929          (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>()) 
    3132   ; 
    3233} 
  • PyJuggler/trunk/src/gadget/_DigitalProxy.cpp

    r20403 r20972  
    306306      ) 
    307307      .def("getName", &gadget::Proxy::getName, 
     308           return_value_policy<copy_const_reference>(), 
    308309           "getName() -> string object\n" 
    309310           "Gets the name of the proxy." 
  • PyJuggler/trunk/src/gadget/_KeyboardMouse.cpp

    r20403 r20972  
    158158      ) 
    159159      .def("getSyncTime", &gadget::KeyboardMouse::getSyncTime, 
     160           return_value_policy<copy_const_reference>(), 
    160161           "getSyncTime -> vpr.Interval object\n" 
    161162           "Gets the interval that will be used for synchronization while\n" 
  • PyJuggler/trunk/src/gadget/_KeyboardMouseProxy.cpp

    r20403 r20972  
    317317      .def("getElementType", &gadget::KeyboardMouseProxy::getElementType) 
    318318      .def("getName", &gadget::Proxy::getName, 
     319           return_value_policy<copy_const_reference>(), 
    319320           "getName() -> string object\n" 
    320321           "Gets the name of the proxy." 
  • PyJuggler/trunk/src/gadget/_Position.cpp

    r20403 r20972  
    157157      .def("getPositionData", &gadget::Position::getPositionData, 
    158158           (args("devNum") = 0), 
     159           return_value_policy<copy_const_reference>(), 
    159160           "getPositionData(devNum = 0) -> gadget.PositionData object\n" 
    160161           "Returns positional data.\n" 
  • PyJuggler/trunk/src/gadget/_PositionData.cpp

    r19730 r20972  
    2222      .def(init<const gadget::PositionData&>()) 
    2323      .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>()) 
    2526      .def("setPosition", &gadget::PositionData::setPosition) 
    2627      .def("setTime", 
     
    2829      .def("setTime", 
    2930           (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>()) 
    3133   ; 
    3234} 
  • PyJuggler/trunk/src/gadget/_PositionProxy.cpp

    r20403 r20972  
    306306      ) 
    307307      .def("getName", &gadget::Proxy::getName, 
     308           return_value_policy<copy_const_reference>(), 
    308309           "getName() -> string object\n" 
    309310           "Gets the name of the proxy." 
  • PyJuggler/trunk/src/gadget/_String.cpp

    r20403 r20972  
    156156      .def("getStringData", &gadget::String::getStringData, 
    157157           (args("devNum") = 0), 
     158           return_value_policy<copy_const_reference>(), 
    158159           "getStringData(devNum = 0) -> gadget.StringData object\n" 
    159160           "Returns string data.\n" 
  • PyJuggler/trunk/src/gadget/_StringData.cpp

    r19730 r20972  
    2828      .def("setTime", 
    2929           (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>()) 
    3132   ; 
    3233} 
  • PyJuggler/trunk/src/gadget/_StringProxy.cpp

    r20403 r20972  
    294294      ) 
    295295      .def("getName", &gadget::Proxy::getName, 
     296           return_value_policy<copy_const_reference>(), 
    296297           "getName() -> string object\n" 
    297298           "Gets the name of the proxy."