mirror of
https://github.com/nasa/trick.git
synced 2025-06-24 09:46:42 +00:00
example sim SIM_msd add init body
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user