Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. if(self.dataNotSent) {
  2. self.thermalSize = size;
  3.  
  4. //storing raw binary NSData thermalData
  5. self.thermalData = radiometricData;
  6.  
  7. //extracted temperature data from the raw binary NSData thermalData
  8. self.dataArray = (uint16_t *)[self.thermalData bytes];
  9.  
  10. //display first temparature reading in the array
  11. float temperatureReading = self.dataArray[0]/100.0;
  12. self.cornerTemperature.text = [NSString stringWithFormat:@"%0.2fºC", temperatureReading-273.15];
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement