Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Needs:

 

Provides:

 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:

Gyro.h
/*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();

Roll Pitch and Yaw named after following Graphic: (source: https://engineering.purdue.edu/ece477/Archive/2011/Spring/S11-Grp09/images_oliver/RollPitchYaw.bmp)

 

Interface Design for Acceleration Sensor:

Interface Design for Compass Sensor:

Compass.h
/*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();
Acceleration.h
/*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();

|

  • No labels