From bc87d137f95591774f6bd119d6ac4080ef06450c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Kn=C3=B6ll?= Date: Sun, 10 Dec 2023 02:38:50 +0100 Subject: [PATCH] removing allocation of motion data from stack to prevent stack overflow on large motion files --- gpssim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpssim.c b/gpssim.c index c490021..158ac19 100644 --- a/gpssim.c +++ b/gpssim.c @@ -92,6 +92,8 @@ double ant_pat_db[37] = { int allocatedSat[MAX_SAT]; +double xyz[USER_MOTION_SIZE][3]; + /*! \brief Subtract two vectors of double * \param[out] y Result of subtraction * \param[in] x1 Minuend of subtraction @@ -1743,7 +1745,7 @@ int main(int argc, char *argv[]) int iumd; int numd; char umfile[MAX_CHAR]; - double xyz[USER_MOTION_SIZE][3]; + int staticLocationMode = FALSE; int nmeaGGA = FALSE;