pathfinder-for-autonomous-navigation / psim

Six DOF flight simulator and related GNC implementations.
MIT License
4 stars 6 forks source link

Update MATLAB to use int64 GPS time and real control cycle duration. #219

Closed nhz2 closed 4 years ago

nhz2 commented 4 years ago

Update MATLAB to use int64 GPS time and real control cycle duration.

Fixes #213

Summary of changes

Ptest Effects

None, Ptest is using its own time for now.

Testing

MATLAB/run_tests.m passes. teensy36 tests pass.

Constants

Changed const.dt = int64(1e8); to const.dt = int64(120e6);

Added:

const.INIT_GPSNS= int64(const.INITGPS_WN)*int64(1E9)*int64(7*24*60*60);
% INITGPS_WN in nanoseconds (ns)

Documentation Evidence

Updated MATLAB/README.md