Update doxygen comments
This commit is contained in:
@@ -57,7 +57,6 @@ void Navigation::init(Route* route) {
|
||||
else
|
||||
this->route = new Route();
|
||||
|
||||
this->ntripClient = new NTRIPClient();
|
||||
this->compass = new QMC5883LCompass();
|
||||
|
||||
// Init Compass
|
||||
@@ -77,7 +76,7 @@ Navigation::~Navigation() {
|
||||
}
|
||||
|
||||
void Navigation::initNtrip(String host, uint16_t port, String mountPoint, String user, String password) {
|
||||
this->ntripClient->init(this->gps, host.c_str(), port, mountPoint.c_str(), user.c_str(), password.c_str());
|
||||
this->ntripClient = new NTRIPClient(this->gps, host.c_str(), port, mountPoint.c_str(), user.c_str(), password.c_str());
|
||||
this->ntripClient->gpsConfiguration();
|
||||
this->ntripClient->loop();
|
||||
this->ntripClient->setActivated(false);
|
||||
@@ -93,7 +92,7 @@ void Navigation::loop() {
|
||||
Navigation::newData = false;
|
||||
}
|
||||
|
||||
if (this->isNtripInit)
|
||||
if (this->ntripClient)
|
||||
this->ntripClient->loop();
|
||||
|
||||
if (millis() - this->lastMillis > AZIMUTH_UPDATE_DELAY) {
|
||||
@@ -169,12 +168,12 @@ bool Navigation::addCurrentPosToRoute() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Navigation::setPointBeforeTurn() {
|
||||
if (millis() - this->currentPosition.getCreationTime() > 1000)
|
||||
return false;
|
||||
this->beforeTurnPoint = this->currentPosition;
|
||||
return true;
|
||||
}
|
||||
// bool Navigation::setPointBeforeTurn() {
|
||||
// if (millis() - this->currentPosition.getCreationTime() > 1000)
|
||||
// return false;
|
||||
// this->beforeTurnPoint = this->currentPosition;
|
||||
// return true;
|
||||
// }
|
||||
|
||||
void Navigation::updateCurrentLocation() {
|
||||
if (Navigation::ubxUpdateTimeStatic == this->ubxUpdateTime)
|
||||
|
||||
Reference in New Issue
Block a user