fix ntrip client and integration
This commit is contained in:
@@ -150,3 +150,28 @@ void MenuSensorData::printPage() const
|
||||
|
||||
this->print(lineOne, lineTwo);
|
||||
}
|
||||
|
||||
void MenuSensorData::runCommand()
|
||||
{
|
||||
switch (this->getCurrentPage())
|
||||
{
|
||||
case 5:
|
||||
{
|
||||
NTRIPClient* client = this->sensorData->getNtripClient();
|
||||
NTRIPClientStates state = client->getClientState();
|
||||
if (state == NTRIPClientStates::pushingData)
|
||||
{
|
||||
client->deactivate();
|
||||
}
|
||||
else if (state == NTRIPClientStates::waiting)
|
||||
{
|
||||
client->activate();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ public:
|
||||
|
||||
private:
|
||||
void printPage() const override;
|
||||
void runCommand() override;
|
||||
|
||||
SensorData *sensorData;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user