mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 21:27:54 +00:00
example sim SIM_msd add init body
This commit is contained in:
parent
5408b5bc44
commit
f0537efb0f
@ -9,5 +9,8 @@ PROGRAMMERS:
|
||||
|
||||
/* initialization job */
|
||||
int MSD::init() {
|
||||
x = x_0;
|
||||
v = v_0;
|
||||
a = (F - b*v - k*x)/m;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user