Provides:
name | accepts | returns |
---|---|---|
int getBatteryStatus() | - | the status of the battery in % (0-100) |
int getActualBatteryVoltage() | - | the actual voltage of the battery in volt |
bool checkForFailure() | - | checks if there are any motor or rotor failures or if any other failures occured |
Interface Design for the Battery Sensor
Gyro.h
/*Library for checking the battery, i.e. its voltage*/ //returns the voltage of the battery in % from 0 to 100 int getBatteryStatus(); //returns the actual current voltage //provided by the battery in volt int getActualBatteryVoltage();
Interface Design for the Safety Systems
FailureSystems.h
/*Library for Safety Systems. For checking if a motor or rotor has failed.*/ //Checks for a failure in all running motor systems //Also checks, if there are any missing rotors or //similar problems. bool checkForFailure();