Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Interfaces Design for Gyro Sensor:

Code Block
languagecppc#
titleGyro.h
firstline1
linenumberstrue
/*Library for the communication with  
the Gyrosensor. Provides functions  
to read its values*/ 
 
//returns the single values separated by axes 
int getRoll(); 
int getPitch(); 
int getYaw(); 
 
//returns an array containing the value for all three axes 
int* getTilting();

...

Interface Design for Acceleration Sensor:

Interface Design for Compass Sensor:

Code Block
languagec#
titleAccelerationCompass.h
firstline1
collapselinenumberstrue
/*Library for the communication with  
the AccelerometerMagnetometer. Provides functions  
to read its values*/ 
 
//returns the single values separated by axes 
int getXAccelgetXMag(); 
int getYAccelgetYMag(); 
int getZAccelgetZMag(); 
 
//returns an array containing the value for all three axes 
int* getAccelgetMag();

Interface Design for Compass Sensor:

Code Block
languagec#
titleCompassAcceleration.h
firstline1
linenumberstrue
/*Library for the communication with  
the MagnetometerAccelerometer. Provides functions  
to read its values*/ 
 
//returns the single values separated by axes 
int getXMaggetXAccel(); 
int getYMaggetYAccel(); 
int getZMaggetZAccel(); 
 
//returns an array containing the value for all three axes 
int* getMaggetAccel();

|