From 0a1f86ea6e6fba6f30894f7333058af91f9b8238 Mon Sep 17 00:00:00 2001 From: Shubham Vasudeo Desai Date: Fri, 12 Jul 2024 10:48:31 -0400 Subject: [PATCH] changes made according to review --- imagery/i.atcorr/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imagery/i.atcorr/main.cpp b/imagery/i.atcorr/main.cpp index 475c1358ca2..98a69f330fa 100644 --- a/imagery/i.atcorr/main.cpp +++ b/imagery/i.atcorr/main.cpp @@ -204,12 +204,12 @@ class TICache { private: struct RBitem set_alt_vis(double alt, double vis) { - struct RBitem rbitem = {0, 0, {0, 0.0, {{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}}, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}}; + struct RBitem rbitem = { /* alt and vis must be in meters */ - rbitem.alt = (alt < 0 ? (int)(alt - 0.5) : (int)(alt + 0.5)); - rbitem.vis = (int)(vis + 0.5); - + .alt = (alt < 0 ? (int)(alt - 0.5) : (int)(alt + 0.5)), + .vis = (int)(vis + 0.5) + }; return rbitem; }