remove lwgps dependency
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
This commit is contained in:
parent
a75e035cc5
commit
e0c33b21e9
@ -22,6 +22,10 @@ change warranting a new major release:
|
|||||||
- Remove 2 TCS threads.
|
- Remove 2 TCS threads.
|
||||||
- Move low level polling into ACS PST, move high level device handlers into TCS system task.
|
- Move low level polling into ACS PST, move high level device handlers into TCS system task.
|
||||||
|
|
||||||
|
## Removed
|
||||||
|
|
||||||
|
- lwgps dependency not compiled anymore, is not used
|
||||||
|
|
||||||
# [v1.27.1] 2023-02-13
|
# [v1.27.1] 2023-02-13
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
@ -204,7 +204,7 @@ set(LIB_FSFW_NAME fsfw)
|
|||||||
set(LIB_EIVE_MISSION eive-mission)
|
set(LIB_EIVE_MISSION eive-mission)
|
||||||
set(LIB_ETL_TARGET etl::etl)
|
set(LIB_ETL_TARGET etl::etl)
|
||||||
set(LIB_CSP_NAME libcsp)
|
set(LIB_CSP_NAME libcsp)
|
||||||
set(LIB_LWGPS_NAME lwgps)
|
# set(LIB_LWGPS_NAME lwgps)
|
||||||
set(LIB_ARCSEC wire)
|
set(LIB_ARCSEC wire)
|
||||||
set(LIB_GOMSPACE_CLIENTS gs_clients)
|
set(LIB_GOMSPACE_CLIENTS gs_clients)
|
||||||
set(LIB_GOMSPACE_CSP gs_csp)
|
set(LIB_GOMSPACE_CSP gs_csp)
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
#include "lwgps/lwgps.h"
|
//#include "lwgps/lwgps.h"
|
||||||
#include "mission/devices/devicedefinitions/ScexDefinitions.h"
|
#include "mission/devices/devicedefinitions/ScexDefinitions.h"
|
||||||
#include "test/TestTask.h"
|
#include "test/TestTask.h"
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ class UartTestClass : public TestTask {
|
|||||||
DleEncoder dleEncoder = DleEncoder();
|
DleEncoder dleEncoder = DleEncoder();
|
||||||
SerialCookie* uartCookie = nullptr;
|
SerialCookie* uartCookie = nullptr;
|
||||||
size_t encodedLen = 0;
|
size_t encodedLen = 0;
|
||||||
lwgps_t gpsData = {};
|
//lwgps_t gpsData = {};
|
||||||
struct termios tty = {};
|
struct termios tty = {};
|
||||||
int serialPort = 0;
|
int serialPort = 0;
|
||||||
bool startFound = false;
|
bool startFound = false;
|
||||||
|
@ -41,11 +41,15 @@ ReturnValue_t EiveTestTask::performOperation(uint8_t operationCode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include <etl/vector.h>
|
#include <etl/vector.h>
|
||||||
#include <lwgps/lwgps.h>
|
|
||||||
|
|
||||||
|
// #include <lwgps/lwgps.h>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Dummy data from GPS receiver. Will be replaced witgh hyperion data later.
|
* @brief Dummy data from GPS receiver. Will be replaced witgh hyperion data later.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const char gps_rx_data[] =
|
const char gps_rx_data[] =
|
||||||
""
|
""
|
||||||
"$GPRMC,183729,A,3907.356,N,12102.482,W,000.0,360.0,080301,015.5,E*6F\r\n"
|
"$GPRMC,183729,A,3907.356,N,12102.482,W,000.0,360.0,080301,015.5,E*6F\r\n"
|
||||||
@ -72,6 +76,7 @@ const char hyperion_gps_data[] =
|
|||||||
"$GNVTG,040.7,T,,M,000.0,N,000.0,K,A*10\r\n"
|
"$GNVTG,040.7,T,,M,000.0,N,000.0,K,A*10\r\n"
|
||||||
"$GNZDA,173225.998892,27,02,2021,00,00*75\r\n";
|
"$GNZDA,173225.998892,27,02,2021,00,00*75\r\n";
|
||||||
|
|
||||||
|
|
||||||
ReturnValue_t EiveTestTask::performOneShotAction() {
|
ReturnValue_t EiveTestTask::performOneShotAction() {
|
||||||
#if OBSW_ADD_TEST_CODE == 1
|
#if OBSW_ADD_TEST_CODE == 1
|
||||||
// performLwgpsTest();
|
// performLwgpsTest();
|
||||||
@ -96,20 +101,22 @@ ReturnValue_t EiveTestTask::performActionB() {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
void EiveTestTask::performLwgpsTest() {
|
void EiveTestTask::performLwgpsTest() {
|
||||||
/* Everything here will only be performed once. */
|
// Everything here will only be performed once.
|
||||||
sif::info << "Processing sample GPS output.." << std::endl;
|
sif::info << "Processing sample GPS output.." << std::endl;
|
||||||
|
|
||||||
lwgps_t gpsStruct;
|
lwgps_t gpsStruct;
|
||||||
sif::info << "Size of GPS struct: " << sizeof(gpsStruct) << std::endl;
|
sif::info << "Size of GPS struct: " << sizeof(gpsStruct) << std::endl;
|
||||||
lwgps_init(&gpsStruct);
|
lwgps_init(&gpsStruct);
|
||||||
|
|
||||||
/* Process all input data */
|
// Process all input data
|
||||||
lwgps_process(&gpsStruct, hyperion_gps_data, strlen(hyperion_gps_data));
|
lwgps_process(&gpsStruct, hyperion_gps_data, strlen(hyperion_gps_data));
|
||||||
|
|
||||||
/* Print messages */
|
// Print messages
|
||||||
printf("Valid status: %d\n", gpsStruct.is_valid);
|
printf("Valid status: %d\n", gpsStruct.is_valid);
|
||||||
printf("Latitude: %f degrees\n", gpsStruct.latitude);
|
printf("Latitude: %f degrees\n", gpsStruct.latitude);
|
||||||
printf("Longitude: %f degrees\n", gpsStruct.longitude);
|
printf("Longitude: %f degrees\n", gpsStruct.longitude);
|
||||||
printf("Altitude: %f meters\n", gpsStruct.altitude);
|
printf("Altitude: %f meters\n", gpsStruct.altitude);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user