I think the screenshot below shows the issue.
Except I get this red box error: The selected file is not allowed due to file quota restrictions!
I set a breakpoint condition of i==3 and it the debugger breaks on the first iteration where i== 0.
for (var i = 0; i< TWAArrayPOS.size(); i++){ //calc TWD(T)for each POS and var thisTWD = engine.normalizeHeading(currCOGTrue + currentView.TWAArray[i]); //TWD(T) for this POS var thisTWDMag = engine.normalizeHeading(thisTWD - MAG_VAR); //TWD(M) for this POS. 0<=x<360 var thisTWDMagIdx = (Math.round(thisTWDMag/22.5)).toNumber(); //round to wind cardinal value (0, 22.5, 45, 62.5) var textColor = Graphics.COLOR_BLACK; var thisCardinal = TWDArray[thisTWDMagIdx]; if (thisTWDMagIdx ==currentMagTWDIdx) { textColor = Graphics.COLOR_DK_BLUE; // System.println("thisCardinal "+ thisCardinal); thisCardinal += " (current)"; customMenu.setFocus(i); //this is the current wind }
VSC Version: 1.67.0
connectiq-sdk-mac-4.1.3