The first design of the Flight Control interface
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
/* Library that contains all
functions to control the flight
of the Quadrocopter */
//----------------------GETTER--------------------------------
//return the current Height of the Quadrocopter
int getHeight();
//returns the current Direction of the Quadrocopter
int getDirection();
//returns the base Speed of the Quadrocopter
int getBaseSpeed();
//----------------------SETTER--------------------------------
//sets the base Speed of the Quadrocopter
void setBaseSpeed();
//------------------Control-Functions-------------------------
//stop the current movement of the Quadrocopter
void stop();
//Let the Quadcopter start flying upwards until something else is set
void incHeight();
//let the Quadcopter start flying upwards until given height is reached
void incHeight(int height);
//let the Quadcopter start flying upwards with given speed until given height is reached
void incHeight(int height, int speed);
//decreases Height until something else is set
void decHeight();
//decreases Height with given amount
void decHeight(int height);
//deacreases Height with given amount and given speed
void decHeight(int height, int speed);
//let the quadrocopter fly forward until something else is set
void flyForward();
//let the quadrocopter fly forward for the given distance
void flyForward(int distance);
//let the quadrocopter fly forward for the given distance with given speed
void flyForward(int distance, int speed);
//let the quadrocopter fly right until something else is set
void flyRight();
//let the quadrocopter fly right for the given distance
void flyRight(int distance);
//let the quadrocopter fly right for the given distance with given speed
void flyRight(int distance, int speed);
//let the quadrocopter fly left until something else is set
void flyLeft();
//let the quadrocopter fly left for the given distance
void flyLeft(int distance);
//let the quadrocopter fly left for the given distance with given speed
void flyLeft(int distance, int speed);
//let the quadrocopter fly backwards until something else is set
void flyBackward();
//let the quadrocopter fly backwards for the given distance
void flyBackward(int distance);
//let the quadrocopter fly backwards for the given distance with given speed
void flyBackward(int distance, int speed);
//let the quadrocopter turn right until something else is set
void turnRight();
//let the quadrocopter turn right for given angle
void turnRight(int angle);
//let the quadrocopter turn right until given angle with given speed
void turnRight(int angle; int speed);
//let the quadrocopter turn left until something else is set
void turnLeft();
//let the quadrocopter turn left for given angle
void turnLeft(int angle);
//let the quadrocopter turn left until given angle with given speed
void turnLeft(int angle; int speed);
//let the quadrocopter land at the current position
void land(); |