Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(self.dataNotSent) {
- self.thermalSize = size;
- //storing raw binary NSData thermalData
- self.thermalData = radiometricData;
- //extracted temperature data from the raw binary NSData thermalData
- self.dataArray = (uint16_t *)[self.thermalData bytes];
- //display first temparature reading in the array
- float temperatureReading = self.dataArray[0]/100.0;
- self.cornerTemperature.text = [NSString stringWithFormat:@"%0.2fºC", temperatureReading-273.15];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement