Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Alexander Lapshin
common
Commits
e421061c
Commit
e421061c
authored
Mar 04, 2021
by
Alexander Lapshin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ override_stdmag function
parent
8a71425e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
MagData.cpp
utils/MagData.cpp
+5
-0
MagData.h
utils/MagData.h
+1
-0
No files found.
utils/MagData.cpp
View file @
e421061c
...
...
@@ -4,6 +4,11 @@
MagData
::
MagData
()
=
default
;
void
MagData
::
override_stdmag
(
const
double
stdmag
)
{
m_stdmag
=
stdmag
;
}
void
MagData
::
SetOpticData
(
const
double
stdphase_deg
,
const
double
stdtrange_km
,
const
double
stdmag
)
{
m_hasData
=
true
;
...
...
utils/MagData.h
View file @
e421061c
...
...
@@ -18,6 +18,7 @@ public:
double
get_std_mag
()
const
{
return
m_stdmag
;
}
double
get_std_phase
()
const
{
return
m_stdphase_rad
;
}
double
get_std_range
()
const
{
return
m_stdrange_tkm
;
}
void
override_stdmag
(
double
stdmag
);
private
:
static
double
CalcA0g
(
double
stdmag
,
double
stdphase_rad
,
double
stdrange_tkm
,
double
sunMag
);
static
double
CalcRealMag
(
double
A0g
,
double
sunMag
,
double
phase_rad
,
double
range_tkm
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment