js/dataCollector/dataCollector.js
function setPositionCallback(positionFunction){

    if (typeof(positionFunction) == 'function'){

        orientationCollector.setPositionCallback(positionFunction);
        callbacks.positionCallback = positionFunction;

    }
    else
        logger.warn('Trying to set a non function object as position callback');

}
function setPositionCallback(positionFunction){

    if (typeof(positionFunction) == 'function'){

        orientationCollector.setPositionCallback(positionFunction);
        callbacks.positionCallback = positionFunction;

    }
    else
        logger.warn('Trying to set a non function object as position callback');

}
function setPositionCallback ( positionFunction ) { if ( typeof ( positionFunction ) == 'function' ) { orientationCollector . setPositionCallback ( positionFunction ) ; callbacks . positionCallback = positionFunction ; } else logger . warn ( 'Trying to set a non function object as position callback' ) ; }
Sets the function to call when setting position
@memberof DataCollector
@param {function} positionFunction
Sets the function to call when setting position