Skip to content

Commit 41ba677

Browse files
author
Dan Smith
committed
Merge branch 'master' into develop/update-externals
2 parents 21cc8ed + e2e3def commit 41ba677

File tree

6 files changed

+84
-97
lines changed

6 files changed

+84
-97
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ install/
2525
install.dbg/
2626
**/install-*/
2727
test_package/build/
28-
out/build/
29-
out/install/
28+
out/
3029
test_package/build/
3130
*.pyc
3231
*.swp

six/modules/c++/six.sicd/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
coda_add_module(
22
six.sicd
3-
DEPS six-c++
3+
DEPS six-c++ units-c++
44
SOURCES
55
source/Antenna.cpp
66
source/AreaPlaneUtility.cpp

six/modules/c++/six.sicd/source/Utilities.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include <str/Manip.h>
4747
#include <sys/Conf.h>
4848
#include <types/RowCol.h>
49+
#include <units/Angles.h>
4950
#include <six/sicd/AreaPlaneUtility.h>
5051
#include <six/sicd/GeoLocator.h>
5152
#include <six/sicd/ImageData.h>
@@ -98,9 +99,9 @@ std::complex<float> six::sicd::Utilities::from_AMP8I_PHS8I(uint8_t input_amplitu
9899

99100
// To convert the amplitude and phase values to complex float (i.e. real and imaginary):
100101
// S = A * cos(2 * pi * P) + j * A * sin(2 * pi * P)
101-
const auto angle = 2 * M_PI * P;
102+
const auto angle = units::Radians<long double>{ 2 * M_PI * P };
102103
long double sin_angle, cos_angle;
103-
math::SinCos(angle, sin_angle, cos_angle);
104+
SinCos(angle, sin_angle, cos_angle);
104105

105106
const auto real = A * cos_angle;
106107
const auto imaginary = A * sin_angle;

six/modules/c++/six.sicd/wscript

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
NAME = 'six.sicd'
2-
MAINTAINER = 'adam.sylvester@mdaus.com'
3-
MODULE_DEPS = 'scene nitf xml.lite six mem'
2+
MODULE_DEPS = 'scene nitf xml.lite six mem units'
43
TEST_DEPS = 'cli'
54
UNITTEST_DEPS = 'cli sio.lite'
65

0 commit comments

Comments
 (0)