-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathControlUnit.cpp
More file actions
54 lines (50 loc) · 1.29 KB
/
ControlUnit.cpp
File metadata and controls
54 lines (50 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <bits/stdc++.h>
#include "Rover.h"
#include "SpaceMission.h"
#include "ControlUnit.h"
#include <unistd.h>
using namespace std;
void ControlUnit::check_payload(){
cout << "--------------------------------------\n";
cout << "checking payload\n";
cout << "payload checked successfully !\n";
}
void ControlUnit::check_all_system_status()
{
cout <<"--------------------------------------\n";
printf("Final Checking all necessary systems ! \n");
sleep(2);
printf("Cryogenic engine check successful !\n");
sleep(2);
printf("Fuel check successful !\n");
sleep(2);
printf("Thermal screening check succesful!\n");
sleep(2);
printf("All System check successful !\n");
sleep(2);
printf("Communication System check succesful !\n");
sleep(2);
printf("Mission is ready to go!\n");
sleep(2);
cout << "--------------------------------------\n";
}
void ControlUnit::iniatialising_launch_sequence()
{
cout<<"Initialing Launch Sequence\n";
int i = 10;
while (i >= 0)
{
cout<<i<<"\n";
sleep(1);
i--;
}
for(int i = 0; i < 3; i++){
cout<<".";
sleep(1);
}
cout<<endl;
}
void ControlUnit::mission_success()
{
cout<<"Congratulations mission is completed successfully!\n";
}