mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-07-25 23:51:35 +00:00
lots of code cleanup and variable renaming
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -30,19 +30,20 @@ int main() {
|
||||
Vars.maxServo = 15; // [degs]
|
||||
|
||||
// Vehicle Properties
|
||||
Vars.m0 = 1.2; // [kg]
|
||||
Vars.massInitial = 1.2; // [kg]
|
||||
Vars.vehicleHeight = 0.5318; // [m]
|
||||
Vars.vehicleRadius = 0.05105; // [m]
|
||||
Vars.momentArm = 0.145; // [m]
|
||||
|
||||
// Sim Step Size
|
||||
// TODO: use dt instead?
|
||||
Vars.stepSize = 1; // [ms]
|
||||
|
||||
// Other Properties
|
||||
Vars.mp = 0.06; // [kg]
|
||||
Vars.mb = Vars.m0 - Vars.mp; // [kg]
|
||||
Vars.tb = 3.45 - 0.148; // [s]
|
||||
Vars.mdot = Vars.mp / Vars.tb; // [kg/s]
|
||||
Vars.massPropellant = 0.06; // [kg]
|
||||
Vars.massBurnout = Vars.massInitial - Vars.massPropellant; // [kg]
|
||||
Vars.burntime = 3.45 - 0.148; // [s]
|
||||
Vars.mdot = Vars.massPropellant / Vars.burntime; // [kg/s]
|
||||
|
||||
sim(Vars);
|
||||
|
||||
|
Reference in New Issue
Block a user