-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed FGMagnetometer which updated the magnetic field every time step.
The counter was reset to zero each time the magnetic field was updated meaning that the update was processed again at the next time step or said otherwise the field was updated at each time step. So removed the reset of the counter to zero (the variable 'counter' is unsigned int so we need more than 4 billions time step to overflow and, would that happen, the counter will be reset to zero which is completely harmless). Also made the unit test more robust in the process.
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters