fixed fallback step-logger

moved vap-grouping to settings-file
sanity-checks
This commit is contained in:
2016-10-02 18:28:17 +02:00
parent a4a8593023
commit 3a1cd1bccc
9 changed files with 95 additions and 32 deletions

View File

@@ -43,7 +43,7 @@ public:
void onButtonPress() {
// sanity check
if (isDone()) {throw "all waypoints were processed";}
if (isDone()) {throw Exception("all waypoints were processed");}
// construct output string
std::stringstream ss;
@@ -142,8 +142,8 @@ private:
const std::string fPos = folder + "positions.log";
// open two output files
outButtons.open(fBtn); if (!outButtons.good()) {throw "error while creating file";}
outPositions.open(fPos); if (!outPositions.good()) {throw "error while creating file";}
outButtons.open(fBtn); if (!outButtons.good()) {throw Exception("error while creating file");}
outPositions.open(fPos); if (!outPositions.good()) {throw Exception("error while creating file");}
// reset current WayPoint
curWP = 0;