I keep getting this binary operator error that "Binary operator '*' cannot be applied to operands of type 'int' and 'double'
var listCount = imageNameList.count
var roll: Double = SUPCalculator.degrees(motion.attitude.roll)
if startDegree == 0.0 {
self.startDegree = SUPCalculator.degrees(motion.attitude.roll)
}
var diff: Double = roll - startDegree
var diffChange: Double = diff / 50
// I get the error here
var diffIndex = listCount * diffChange