diff --git a/lib/obp60task/config.json b/lib/obp60task/config.json index 3627167..3fe0afc 100644 --- a/lib/obp60task/config.json +++ b/lib/obp60task/config.json @@ -766,7 +766,7 @@ }, { "name": "visiblePages", - "label": "number of pages", + "label": "Number of Pages", "type": "number", "check": "checkMinMax", "min": 1, @@ -777,6 +777,19 @@ "obp60":"true" } }, + { + "name": "startPage", + "label": "Start Page", + "type": "number", + "check": "checkMinMax", + "min": 1, + "max": 10, + "default":"1", + "category":"OBP60 Pages", + "capabilities": { + "obp60":"true" + } + }, { "name": "page1type", "label": "Type", diff --git a/lib/obp60task/obp60task.cpp b/lib/obp60task/obp60task.cpp index e1299b8..ae30af5 100644 --- a/lib/obp60task/obp60task.cpp +++ b/lib/obp60task/obp60task.cpp @@ -370,7 +370,9 @@ void OBP60Task(GwApi *api){ GwApi::BoatValue *lon = boatValues.findValueOrCreate("LON"); // Load GpsLongitude LOG_DEBUG(GwLog::LOG,"obp60task: start mainloop"); - int pageNumber=0; + // Set start page + // int pageNumber = 0; + int pageNumber = int(api->getConfig()->getConfigItem(api->getConfig()->startPage,true)->asInt()) - 1; int lastPage=pageNumber; commonData.time = boatValues.findValueOrCreate("GPST"); // Load GpsTime