SHARE
TWEET

Untitled

a guest Jun 20th, 2019 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top