You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each person in the pair needs to git clone this repo
Decide, who is Person A and who is Person B
Tasks will be appearing below. After you complete one, another one appears. There is 10 in total.
First 6 tasks are always only for one person (it alternates between A and B)
In the remaining tasks, you will work in parallel and might even need to resolve some conflicts.
Tasks
Person A - pod.cpp - Name your pod
Open pod.cpp file and locate TASK 1
Type the name for your pod inside the double-quotes (you should discuss the choice of the name with your teammate)
Person B - pod.cpp - Choose max speed
Open pod.cpp file and locate TASK 2
Tell us what the max speed of your pod is by replacing the 0 in the code with a real number
Person A - pod.h and pod.cpp - Tempereture inside the pressure vessel
Open pod.h, locate place for TASKS 3&4 and copy-paste the following line there
doubleget_temperature();
Open pod.cpp, locate place for TASKS 3&4 and copy-paste the following code there (you can change the 0 there if you want a more comfortable temperature)
doublePod::get_temperature()
{
return0;
}
When done, commit both files in a single commit (ofc don't forget push and stuff as always)
Person B - pod.h and pod.cpp - Pressure inside the pressure vessel
Open pod.h, locate place for TASKS 3&4 and copy-paste the following line below the one from previous task
doubleget_pressure();
Open pod.cpp, locate place for TASKS 3&4, copy the following code and paste it below the function from previous task (you can change the 0 there if you want a more comfortable pressure)
doublePod::get_pressure()
{
return0;
}
When done, commit both files in a single commit (ofc don't forget push and stuff as always)
Person A - main.cpp and Makefile - Main executable
Create a new file called main.cpp and copy the following code to it
Person A - pod.h and Makefile - Integrate battery management system with the pod
Open pod.h, locate TASK 10.1, and include the BMS header by copying the following code
#include"bms.h"
Locate TASK 10.2 and declare the BMS field as follows
BatteryManagementSystem bms;
Open Makefile
Append bms.h to the lines starting with pod.o : and main.o :
Append bms.o to the lines starting with main : and OBJS =
Person B - pod.h, pod.cpp and Makefile - Integrate navigation system with the pod
Open pod.h, locate TASK 10.1, and include the navigation header by copying the following code
#include"navigation.h"
Locate TASK 10.2 and declare the nav field as follows
Navigation nav;
Open pod.cpp, locate TASK 10, and initialize the navigation system with one accelerometer as follows
this->nav.add_accelerometer(new Accelerometer);
Open Makefile
Append navigation.h to the lines starting with pod.o : and main.o :
Append navigation.o to the lines starting with main : and OBJS =
Commit both files in a single commit
Wait for your teammate to git push before you git pull --rebase
SLOW DOWN You've got some conflicts. Now go and carefully resolve them. Take your time.
##Feedback
Great workshop 10/10. Very useful, now I'm a git pro.
Summary of tasks
Task #
Person A
Person B
1
Name your pod - edit pod.cpp
2
Max speed - edit pod.cpp
3
Pressure vessel temperature - edit pod.h and pod.cpp
4
Pressure vessel pressure - edit pod.h and pod.cpp
5
Create main.cpp and update Makefile
6
BMS - create bms.cpp and bms.h and update Makefile