Page tree

Versions Compared

Key

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

...

 acceptsreturns
int[10] scanSurrounding()
 

array of all distances detected by the ultrasonic proximity sensors

[front, front-right, right, back-right, back, back-left, left, front-left, top, bottom]

 

Interfaces Design for Gyro Sensor:

Code Block
languagecpp
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 getXTilting(); 
int getYTilting(); 
int getZTilting(); 
 
//returns an array containing the value for all three axes 
int* getTilting();

Interface Design for Acceleration Sensor:

Code Block
languagec#
titleAcceleration.h
firstline1
collapsetrue
/*Library for the communication with  
the Accelerometer. Provides functions  
to read its values*/ 
 
//returns the single values separated by axes 
int getXAccel(); 
int getYAccel(); 
int getZAccel(); 
 
//returns an array containing the value for all three axes 
int* getAccel();

Interface Design for Compass Sensor:

Code Block
languagec#
titleCompass.h
firstline1
linenumberstrue
/*Library for the communication with  
the Magnetometer. Provides functions  
to read its values*/ 
 
//returns the single values separated by axes 
int getXMag(); 
int getYMag(); 
int getZMag(); 
 
//returns an array containing the value for all three axes 
int* getMag();