Hi,
I'm working on a wrapper for a i2c gyro.
in the *.ccp file i have this function:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
is there a way to pass the float variables to b4r
or is it better to pass a int array and do the calculation in b4r ?
best regards
Michael
			
			I'm working on a wrapper for a i2c gyro.
in the *.ccp file i have this function:
			
				Objective-C:
			
		
		
		void M5_MPU6886::getGyro(float* gx, float* gy, float* gz) {
  float gRes = 2000.0 / 32768.0;
  *gx = (int16_t)((readByte(0x43) << 8) | readByte(0x44)) * gRes;
  *gy = (int16_t)((readByte(0x45) << 8) | readByte(0x46)) * gRes;
  *gz = (int16_t)((readByte(0x47) << 8) | readByte(0x48)) * gRes;
}is there a way to pass the float variables to b4r
or is it better to pass a int array and do the calculation in b4r ?
best regards
Michael
 
				 
 
		 
 
		 
 
		 
 
		 
 
		