Merge "Add function for scaling haptic data."