






Started logging.
I[17:23:50.657] clangd version 14.0.0
I[17:23:50.658] Features: windows
I[17:23:50.658] PID: 15168
I[17:23:50.658] Working directory: g:\11.ZhiYi\5.Tutorial\1.tutorial\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\ZYC0043-2022.9.8\4_Arduino_Code\2_follow
I[17:23:50.658] argv[0]: d:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\clangd.exe
I[17:23:50.658] argv[1]: -log=verbose
I[17:23:50.658] argv[2]: --compile-commands-dir=C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680
I[17:23:50.658] argv[3]: -query-driver=C:\Users\Administrator\AppData\Local\Arduino15\packages\**
V[17:23:50.663] User config file is C:\Users\Administrator\AppData\Local\clangd\config.yaml
I[17:23:50.663] Starting LSP over stdin/stdout
V[17:23:50.664] <<< {"id":"1","jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":true,"isPreferredSupport":true},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"preselectSupport":true,"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":true,"dynamicRegistration":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"documentSymbol":{"dynamicRegistration":true,"hierarchicalDocumentSymbolSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"foldingRange":{"dynamicRegistration":true,"lineFoldingOnly":true,"rangeLimit":5000},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"onTypeFormatting":{"dynamicRegistration":true},"publishDiagnostics":{"relatedInformation":true,"tagSupport":{"valueSet":[1,2]}},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"selectionRange":{"dynamicRegistration":true},"signatureHelp":{"contextSupport":true,"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true}},"window":{"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"workspaceEdit":{"documentChanges":true,"failureHandling":"textOnlyTransactional","resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"vscode","version":"1.53.2"},"initializationOptions":{},"processId":3540,"rootPath":"C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch","rootUri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch","trace":"off","workspaceFolders":[{"name":"2_follow","uri":"file:///g%3A/11.ZhiYi/5.Tutorial/1.tutorial/ZYC0043%EF%BC%89Four-way%20tracking%20and%20obstacle%20avoidance%20following%20car%20kit%20v2.0%20tutorial/ZYC0043-2022.9.8/4_Arduino_Code/2_follow"}]}}

I[17:23:50.664] <-- initialize("1")
I[17:23:50.685] --> reply:initialize("1") 20 ms
V[17:23:50.685] >>> {"id":"1","jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"clangdInlayHintsProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"implementationProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","functionScope","classScope","fileScope","globalScope"],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeDefinitionProvider":true,"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 14.0.0 windows x86_64-pc-windows-msvc"}}}

V[17:23:50.686] <<< {"jsonrpc":"2.0","method":"initialized","params":{}}

I[17:23:50.686] <-- initialized
V[17:23:50.690] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"#include <Arduino.h>\n#line 1 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\n/*************************************\n *     TIME:2022.06.25\n *     Development Team: Zhiyi Technology Co., Ltd.\n * \n *  **************************************/\n\n#include <Servo.h>\n#define Trig 12 //Pin Tring connects to D12\n#define Echo 13 //Pin Echo connects to D13\nfloat cm; //Distance variable\n// float temp; //\n\nint ENA = 5; \nint IN1 = 3; \nint IN2 = 4;\n\nint ENB = 6; \nint IN3 = 2;\nint IN4 = 7;\n\nint Sensor1 = A2;//pin A2\nint Sensor2 = A5;//pin A5\n\nint SensorLeft;\nint SensorRight;\n\nServo myservo;  // create servo object to control a servo\n// twelve servo objects can be created on most boards\n\n#line 30 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid setup();\n#line 50 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid loop();\n#line 102 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nfloat GetDistance();\n#line 120 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid left();\n#line 133 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid right();\n#line 146 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid forward();\n#line 161 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid stop();\n#line 173 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid back();\n#line 30 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid setup()\n{\n    myservo.attach(A0);  // attaches the servo on pin 9 to the servo object\n    //Set the pin mode\n    pinMode(ENA, OUTPUT);\n    pinMode(IN1, OUTPUT);\n    pinMode(IN2, OUTPUT);\n\n    pinMode(ENB, OUTPUT);\n    pinMode(IN3, OUTPUT);\n    pinMode(IN4, OUTPUT);\n\n    pinMode(Sensor1, INPUT);\n    pinMode(Sensor2, INPUT);\n    pinMode(Trig, OUTPUT);\n    pinMode(Echo, INPUT);\n    Serial.begin(9600);\n    myservo.write(100); \n}\n\nvoid loop()\n{\n    cm = GetDistance();\n\n    SensorLeft  =  digitalRead(A2);//The sensor on the left\n    SensorRight =  digitalRead(A5);//The sensor on the Right\n    \n    // If the right sensor detects the signal, the left sensor does not detect the signal, \n    // the ultrasonic detection of the obstacle distance between 5cm to 10cm, turn to the right\n    if (SensorLeft == HIGH && SensorRight == LOW && ( cm > 5 && cm < 10))\n    {\n        right();\n    }\n    else if(SensorLeft == LOW && SensorRight == HIGH&& ( cm >5 && cm <10))\n    {\n        left();\n    }\n    else  if(SensorLeft == HIGH && SensorRight == HIGH&&( cm >11 && cm <20))\n    {\n        forward();\n    }\n    else if(SensorLeft == HIGH && SensorRight == HIGH && ( cm >20 || cm <3))\n    {\n        stop();\n    }\n    else  if((SensorLeft == LOW && SensorRight == LOW)||( cm <5))\n    {\n        back();\n    }\n\n    if (SensorLeft == LOW)\n    {\n        myservo.write(160); \n    }\n    else if (SensorRight == LOW)\n    {\n        myservo.write(40); \n    }\n    else \n    {\n        myservo.write(100); \n    }\n    \n}\n\n/*\nFunction: obtain ultrasonic sensor ranging data\nParameters: Trig, Echo\nParameter description: sensor connected to the motherboard pin port A4,A5\nTrig -------> pin D12\nEcho -------> pin D13\n*/\nfloat GetDistance()\n{\n    float distance;\n    // Send a low short pulse to Trig to trigger the ranging\n    digitalWrite(Trig, LOW); //Send a low level to Trig\n    delayMicroseconds(2);\n    digitalWrite(Trig, HIGH);\n    delayMicroseconds(10);\n    digitalWrite(Trig, LOW);\n    distance = pulseIn(Echo, HIGH) / 58.00;\n    \n    Serial.print(\"Distance = \");\n    Serial.println(distance);//The serial output distance is converted into cm\n\n\t  return distance;\n}\n\n//turn left\nvoid left(){\n  //Set the speed of the motor\n    analogWrite(ENA, 60);\n    analogWrite(ENB, 160);\n    //The right forward\n    digitalWrite(IN1, LOW);\n    digitalWrite(IN2, LOW);\n    //The left STOP\n    digitalWrite(IN3, HIGH);\n    digitalWrite(IN4, LOW);\n    Serial.println(\"left\");\n  }\n//turn right\n void right(){\n    //Set the speed of the motor\n   analogWrite(ENA, 160);\n   analogWrite(ENB, 60);\n    //The right stop\n    digitalWrite(IN1, HIGH);\n    digitalWrite(IN2, LOW);\n  //The left forward\n    digitalWrite(IN3,LOW);\n    digitalWrite(IN4,LOW);\n     Serial.println(\"right\");\n  }\n//turn forward\n void forward(){\n    //FORWARD\n    //Set the speed of the motor\n     analogWrite(ENA, 130);\n     analogWrite(ENB, 130);\n     //The right forward\n     digitalWrite(IN1, HIGH);\n     digitalWrite(IN2,LOW);\n     //The left forward\n     digitalWrite(IN3, HIGH);\n     digitalWrite(IN4, LOW);\n     Serial.println(\"forward\");\n  }\n\n//stop\n void stop(){\n    analogWrite(ENA, 0);\n    analogWrite(ENB, 0);\n  //set IN1,IN2,IN3,IN4 to LOW\n    digitalWrite(IN1,LOW);\n    digitalWrite(IN2,LOW);\n    digitalWrite(IN3, LOW);\n    digitalWrite(IN4, LOW);\n     Serial.println(\"stop\");\n  \n  }\n  //back up\n   void back(){\n    //Set the speed of the motor    \n     analogWrite(ENA, 110);\n     analogWrite(ENB, 110);\n     //The right back\n     digitalWrite(IN1, LOW);\n     digitalWrite(IN2,HIGH);\n     //The left back\n     digitalWrite(IN3,LOW);\n     digitalWrite(IN4, HIGH);\n     Serial.println(\"back\");\n  }\n\n","uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp","version":1}}}

I[17:23:50.690] <-- textDocument/didOpen
V[17:23:50.691] <<< {"id":"2","jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp"}}}

I[17:23:50.691] <-- textDocument/documentSymbol("2")
V[17:23:50.692] config note at C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\.clangd:1:0: Parsing config fragment
V[17:23:50.692] config note at C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\.clangd:1:0: Parsed 1 fragments from file
V[17:23:50.692] Config fragment: compiling C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\.clangd:1 -> 0x0000019186C79860 (trusted=false)
I[17:23:50.693] --> textDocument/publishDiagnostics
V[17:23:50.693] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/.clangd"}}

I[17:23:50.694] Loaded compilation database from C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\compile_commands.json
V[17:23:50.694] Broadcasting compilation database from C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680
I[17:23:50.696] --> window/workDoneProgress/create(0)
V[17:23:50.696] >>> {"id":0,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}

I[17:23:50.696] Enqueueing 26 commands for indexing
V[17:23:50.696] <<< {"id":0,"jsonrpc":"2.0","result":null}

I[17:23:50.696] <-- reply(0)
I[17:23:50.696] --> $/progress
V[17:23:50.696] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}

I[17:23:50.696] --> $/progress
V[17:23:50.696] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}

V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\CDC.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Print.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_digital.c
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring.c
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Tone.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial0.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial1.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial2.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial3.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\main.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Stream.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_shift.c
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WString.cpp
V[17:23:50.697] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\abi.cpp
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\USBCore.cpp
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WInterrupts.c
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.c
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\PluggableUSB.cpp
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\IPAddress.cpp
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_analog.c
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WMath.cpp
V[17:23:50.698] Failed to load shard: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\hooks.c
I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/27","percentage":0}}}

I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/27","percentage":0}}}

I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/27","percentage":0}}}

I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/27","percentage":0}}}

I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/27","percentage":0}}}

I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/27","percentage":3}}}

I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/27","percentage":3}}}

I[17:23:50.701] --> $/progress
V[17:23:50.701] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/27","percentage":3}}}

V[17:23:50.804] System include extraction: target extracted: "avr"
V[17:23:50.804] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include

V[17:23:50.804] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed

V[17:23:50.804] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include

I[17:23:50.804] System includes extractor: successfully executed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-g++.exe
	got includes: "c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include"
	got target: "avr"
I[17:23:50.805] ASTWorker building file C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp version 1 with command 
[G:\11.ZhiYi\5.Tutorial\1.tutorial\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\ZYC0043-2022.9.8\4_Arduino_Code\2_follow]
"C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\avr-g++.exe" --target=avr --driver-mode=g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-Id:\\Arduino\\libraries\\Servo\\src" -o "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.o" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include-fixed" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/../../../../avr/include" -ferror-limit=0 "-resource-dir=d:\\Program Files\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\lib\\clang\\14.0.0" -- "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp"
V[17:23:50.814] Driver produced command: cc1 -cc1 -triple avr -fsyntax-only -flto=full -flto-unit -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name 2_follow.ino.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -fno-use-init-array -fno-use-cxa-atexit -target-cpu atmega328p -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=G:\\11.ZhiYi\\5.Tutorial\\1.tutorial\\ZYC0043\xEF\xBC\x89Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\ZYC0043-2022.9.8\\4_Arduino_Code\\2_follow" -resource-dir "d:\\Program Files\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\lib\\clang\\14.0.0" -dependency-file "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.d" -MT "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.o" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include-fixed" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/../../../../avr/include" -D F_CPU=16000000L -D ARDUINO=10607 -D ARDUINO_AVR_UNO -D ARDUINO_ARCH_AVR -I "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" -I "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" -I "d:\\Arduino\\libraries\\Servo\\src" -internal-isystem "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin/../lib/gcc/avr/7.3.0/../../../../avr/include" -Os -Wno-error=narrowing -w -std=gnu++11 -fdeprecated-macro "-fdebug-compilation-dir=G:\\11.ZhiYi\\5.Tutorial\\1.tutorial\\ZYC0043\xEF\xBC\x89Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\ZYC0043-2022.9.8\\4_Arduino_Code\\2_follow" -ferror-limit 0 -fgnuc-version=4.2.1 -fno-threadsafe-statics -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c++ "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp"
V[17:23:50.814] System include extraction: target extracted: "avr"
V[17:23:50.814] Building first preamble for C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp version 1
V[17:23:50.814] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include

V[17:23:50.814] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed

V[17:23:50.814] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include

I[17:23:50.814] System includes extractor: successfully executed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-gcc.exe
	got includes: "c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include"
	got target: "avr"
V[17:23:50.815] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S (digest:=87583F1C920AA889)
V[17:23:50.824] System include extraction: target extracted: "avr"
V[17:23:50.824] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include

V[17:23:50.824] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed

V[17:23:50.824] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include

I[17:23:50.824] System includes extractor: successfully executed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-g++.exe
	got includes: "c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include"
	got target: "avr"
V[17:23:50.825] Indexing C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp (digest:=1976B0CE299CA478)
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:54:1:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:62:23:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:63:23:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:64:23:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:65:23:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:66:23:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:67:23:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:72:37:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:73:31:expected ';' after top level declarator
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:79:23:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:83:32:expected identifier or '('
V[17:23:50.831] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:83:35:expected identifier or '('
V[17:23:50.832] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:84:22:unknown type name 'maxloops'
V[17:23:50.832] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:85:8:expected ';' after top level declarator
V[17:23:50.832] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:85:22:unknown type name 'maxloops'
V[17:23:50.832] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:86:8:expected ';' after top level declarator
V[17:23:50.832] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:86:22:unknown type name 'maxloops'
V[17:23:50.832] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:87:9:expected ';' after top level declarator
V[17:23:50.832] Ignored diagnostic. C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S:87:18:expected identifier or '('
V[17:23:50.832] Ignored diagnostic. too many errors emitted, stopping now
I[17:23:50.835] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S (12 symbols, 937 refs, 9 files)
I[17:23:50.835] Failed to compile C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.S, index may be incomplete
V[17:23:50.836] System include extraction: target extracted: "avr"
V[17:23:50.836] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include

V[17:23:50.836] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed

V[17:23:50.836] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include

I[17:23:50.836] System includes extractor: successfully executed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-gcc.exe
	got includes: "c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include"
	got target: "avr"
V[17:23:50.837] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring.c (digest:=5D6C1534064234DD)
V[17:23:50.840] System include extraction: target extracted: "avr"
V[17:23:50.840] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include

V[17:23:50.840] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed

V[17:23:50.840] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include

I[17:23:50.840] System includes extractor: successfully executed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-g++.exe
	got includes: "c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include"
	got target: "avr"
V[17:23:50.841] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\IPAddress.cpp (digest:=6DDB6ED4F4E34E63)
V[17:23:50.845] System include extraction: target extracted: "avr"
V[17:23:50.845] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include

V[17:23:50.845] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed

V[17:23:50.845] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include

I[17:23:50.845] System includes extractor: successfully executed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-g++.exe
	got includes: "c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include"
	got target: "avr"
V[17:23:50.851] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\main.cpp (digest:=313C4893EB7ADBE6)
V[17:23:50.854] System include extraction: target extracted: "avr"
V[17:23:50.854] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include

V[17:23:50.857] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed

V[17:23:50.857] System include extraction: adding  c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include

I[17:23:50.857] System includes extractor: successfully executed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-g++.exe
	got includes: "c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/include-fixed, c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include"
	got target: "avr"
V[17:23:50.861] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WString.cpp (digest:=293923F15565174B)
I[17:23:50.879] --> $/progress
V[17:23:50.879] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/27","percentage":7}}}

I[17:23:50.879] --> $/progress
V[17:23:50.879] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/27","percentage":7}}}

V[17:23:50.883] indexed preamble AST for C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp version 1:
  symbol slab: 2531 symbols, 722926 bytes
  ref slab: 0 symbols, 0 refs, 136 bytes
  relations slab: 9 relations, 177 bytes
V[17:23:50.887] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.c (digest:=B0774BE9D28D49CB)
I[17:23:50.893] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring.c (312 symbols, 2775 refs, 25 files)
V[17:23:50.913] Build dynamic index for header symbols with estimated memory usage of 2181946 bytes
V[17:23:50.915] Built preamble of size 433052 for file C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp version 1
I[17:23:50.919] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\IPAddress.cpp (620 symbols, 3567 refs, 36 files)
I[17:23:50.930] Indexed C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp (639 symbols, 3688 refs, 37 files)
I[17:23:50.936] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_pulse.c (309 symbols, 2669 refs, 25 files)
I[17:23:50.937] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WString.cpp (299 symbols, 2470 refs, 18 files)
V[17:23:50.945] indexed file AST for C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp version 1:
  symbol slab: 22 symbols, 9328 bytes
  ref slab: 44 symbols, 231 refs, 9840 bytes
  relations slab: 0 relations, 24 bytes
V[17:23:50.946] Build dynamic index for main-file symbols with estimated memory usage of 34224 bytes
I[17:23:50.946] --> textDocument/publishDiagnostics
V[17:23:50.946] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp","version":1}}

V[17:23:50.946] ASTWorker running DocumentSymbols on version 1 of C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
I[17:23:50.947] --> reply:textDocument/documentSymbol("2") 256 ms
V[17:23:50.947] >>> {"id":"2","jsonrpc":"2.0","result":[{"detail":"float","kind":13,"name":"cm","range":{"end":{"character":8,"line":11},"start":{"character":0,"line":11}},"selectionRange":{"end":{"character":8,"line":11},"start":{"character":6,"line":11}}},{"detail":"int","kind":13,"name":"ENA","range":{"end":{"character":11,"line":14},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":7,"line":14},"start":{"character":4,"line":14}}},{"detail":"int","kind":13,"name":"IN1","range":{"end":{"character":11,"line":15},"start":{"character":0,"line":15}},"selectionRange":{"end":{"character":7,"line":15},"start":{"character":4,"line":15}}},{"detail":"int","kind":13,"name":"IN2","range":{"end":{"character":11,"line":16},"start":{"character":0,"line":16}},"selectionRange":{"end":{"character":7,"line":16},"start":{"character":4,"line":16}}},{"detail":"int","kind":13,"name":"ENB","range":{"end":{"character":11,"line":18},"start":{"character":0,"line":18}},"selectionRange":{"end":{"character":7,"line":18},"start":{"character":4,"line":18}}},{"detail":"int","kind":13,"name":"IN3","range":{"end":{"character":11,"line":19},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":7,"line":19},"start":{"character":4,"line":19}}},{"detail":"int","kind":13,"name":"IN4","range":{"end":{"character":11,"line":20},"start":{"character":0,"line":20}},"selectionRange":{"end":{"character":7,"line":20},"start":{"character":4,"line":20}}},{"detail":"int","kind":13,"name":"Sensor1","range":{"end":{"character":16,"line":22},"start":{"character":0,"line":22}},"selectionRange":{"end":{"character":11,"line":22},"start":{"character":4,"line":22}}},{"detail":"int","kind":13,"name":"Sensor2","range":{"end":{"character":16,"line":23},"start":{"character":0,"line":23}},"selectionRange":{"end":{"character":11,"line":23},"start":{"character":4,"line":23}}},{"detail":"int","kind":13,"name":"SensorLeft","range":{"end":{"character":14,"line":25},"start":{"character":0,"line":25}},"selectionRange":{"end":{"character":14,"line":25},"start":{"character":4,"line":25}}},{"detail":"int","kind":13,"name":"SensorRight","range":{"end":{"character":15,"line":26},"start":{"character":0,"line":26}},"selectionRange":{"end":{"character":15,"line":26},"start":{"character":4,"line":26}}},{"detail":"Servo","kind":13,"name":"myservo","range":{"end":{"character":13,"line":28},"start":{"character":0,"line":28}},"selectionRange":{"end":{"character":13,"line":28},"start":{"character":6,"line":28}}},{"detail":"void ()","kind":12,"name":"setup","range":{"end":{"character":12,"line":32},"start":{"character":0,"line":32}},"selectionRange":{"end":{"character":10,"line":32},"start":{"character":5,"line":32}}},{"detail":"void ()","kind":12,"name":"loop","range":{"end":{"character":11,"line":34},"start":{"character":0,"line":34}},"selectionRange":{"end":{"character":9,"line":34},"start":{"character":5,"line":34}}},{"detail":"float ()","kind":12,"name":"GetDistance","range":{"end":{"character":19,"line":36},"start":{"character":0,"line":36}},"selectionRange":{"end":{"character":17,"line":36},"start":{"character":6,"line":36}}},{"detail":"void ()","kind":12,"name":"left","range":{"end":{"character":11,"line":38},"start":{"character":0,"line":38}},"selectionRange":{"end":{"character":9,"line":38},"start":{"character":5,"line":38}}},{"detail":"void ()","kind":12,"name":"right","range":{"end":{"character":12,"line":40},"start":{"character":0,"line":40}},"selectionRange":{"end":{"character":10,"line":40},"start":{"character":5,"line":40}}},{"detail":"void ()","kind":12,"name":"forward","range":{"end":{"character":14,"line":42},"start":{"character":0,"line":42}},"selectionRange":{"end":{"character":12,"line":42},"start":{"character":5,"line":42}}},{"detail":"void ()","kind":12,"name":"stop","range":{"end":{"character":11,"line":44},"start":{"character":0,"line":44}},"selectionRange":{"end":{"character":9,"line":44},"start":{"character":5,"line":44}}},{"detail":"void ()","kind":12,"name":"back","range":{"end":{"character":11,"line":46},"start":{"character":0,"line":46}},"selectionRange":{"end":{"character":9,"line":46},"start":{"character":5,"line":46}}},{"detail":"void ()","kind":12,"name":"setup","range":{"end":{"character":1,"line":66},"start":{"character":0,"line":48}},"selectionRange":{"end":{"character":10,"line":48},"start":{"character":5,"line":48}}},{"detail":"void ()","kind":12,"name":"loop","range":{"end":{"character":1,"line":111},"start":{"character":0,"line":68}},"selectionRange":{"end":{"character":9,"line":68},"start":{"character":5,"line":68}}},{"detail":"float ()","kind":12,"name":"GetDistance","range":{"end":{"character":1,"line":135},"start":{"character":0,"line":120}},"selectionRange":{"end":{"character":17,"line":120},"start":{"character":6,"line":120}}},{"detail":"void ()","kind":12,"name":"left","range":{"end":{"character":3,"line":149},"start":{"character":0,"line":138}},"selectionRange":{"end":{"character":9,"line":138},"start":{"character":5,"line":138}}},{"detail":"void ()","kind":12,"name":"right","range":{"end":{"character":3,"line":162},"start":{"character":1,"line":151}},"selectionRange":{"end":{"character":11,"line":151},"start":{"character":6,"line":151}}},{"detail":"void ()","kind":12,"name":"forward","range":{"end":{"character":3,"line":176},"start":{"character":1,"line":164}},"selectionRange":{"end":{"character":13,"line":164},"start":{"character":6,"line":164}}},{"detail":"void ()","kind":12,"name":"stop","range":{"end":{"character":3,"line":189},"start":{"character":1,"line":179}},"selectionRange":{"end":{"character":10,"line":179},"start":{"character":6,"line":179}}},{"detail":"void ()","kind":12,"name":"back","range":{"end":{"character":3,"line":202},"start":{"character":3,"line":191}},"selectionRange":{"end":{"character":12,"line":191},"start":{"character":8,"line":191}}}]}

I[17:23:50.953] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\main.cpp (602 symbols, 3436 refs, 35 files)
I[17:23:51.344] --> $/progress
V[17:23:51.344] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/27","percentage":11}}}

I[17:23:51.344] --> $/progress
V[17:23:51.344] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/27","percentage":11}}}

V[17:23:51.347] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\hooks.c (digest:=C16B0ED8B1C5BB9F)
I[17:23:51.351] --> $/progress
V[17:23:51.351] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/27","percentage":14}}}

I[17:23:51.351] --> $/progress
V[17:23:51.351] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/27","percentage":14}}}

V[17:23:51.355] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\abi.cpp (digest:=4A1244E54C0CAC04)
I[17:23:51.361] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\hooks.c (1 symbols, 1 refs, 1 files)
I[17:23:51.365] --> $/progress
V[17:23:51.365] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/27","percentage":18}}}

I[17:23:51.365] --> $/progress
V[17:23:51.365] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/27","percentage":18}}}

V[17:23:51.367] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_analog.c (digest:=BC32CF542FD8D605)
I[17:23:51.372] --> $/progress
V[17:23:51.372] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/27","percentage":22}}}

I[17:23:51.372] --> $/progress
V[17:23:51.372] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/27","percentage":22}}}

V[17:23:51.374] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial.cpp (digest:=7D1D0E442CF15FC1)
I[17:23:51.375] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\abi.cpp (2 symbols, 83 refs, 3 files)
V[17:23:51.379] BackgroundIndex: building version 1 after indexing enough files
V[17:23:51.388] BackgroundIndex: serving version 1 (1395830 bytes)
I[17:23:51.388] --> $/progress
V[17:23:51.388] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/27","percentage":25}}}

I[17:23:51.388] --> $/progress
V[17:23:51.388] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/27","percentage":25}}}

V[17:23:51.391] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WInterrupts.c (digest:=0A36B38756A4F148)
I[17:23:51.405] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_analog.c (7 symbols, 2204 refs, 25 files)
I[17:23:51.426] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WInterrupts.c (7 symbols, 2169 refs, 25 files)
I[17:23:51.429] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial.cpp (85 symbols, 2685 refs, 38 files)
I[17:23:51.512] --> $/progress
V[17:23:51.512] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"8/27","percentage":29}}}

I[17:23:51.512] --> $/progress
V[17:23:51.512] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"8/27","percentage":29}}}

I[17:23:51.514] --> $/progress
V[17:23:51.514] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"9/27","percentage":33}}}

I[17:23:51.514] --> $/progress
V[17:23:51.514] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"9/27","percentage":33}}}

V[17:23:51.515] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\PluggableUSB.cpp (digest:=FDB5BCAAB3E73FCE)
V[17:23:51.515] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial3.cpp (digest:=D7FFC6931C21680C)
I[17:23:51.517] --> $/progress
V[17:23:51.517] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"10/27","percentage":37}}}

I[17:23:51.517] --> $/progress
V[17:23:51.517] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"10/27","percentage":37}}}

V[17:23:51.520] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_shift.c (digest:=5E8D23E876F6F446)
I[17:23:51.545] --> $/progress
V[17:23:51.545] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"11/27","percentage":40}}}

I[17:23:51.545] --> $/progress
V[17:23:51.545] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"11/27","percentage":40}}}

V[17:23:51.547] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp (digest:=F68AA83B5BAAD75D)
I[17:23:51.548] --> $/progress
V[17:23:51.548] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"12/27","percentage":44}}}

I[17:23:51.548] --> $/progress
V[17:23:51.548] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"12/27","percentage":44}}}

V[17:23:51.553] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WMath.cpp (digest:=38075D39C713EC91)
I[17:23:51.560] --> $/progress
V[17:23:51.560] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"13/27","percentage":48}}}

I[17:23:51.560] --> $/progress
V[17:23:51.560] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"13/27","percentage":48}}}

V[17:23:51.566] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_digital.c (digest:=343A7ACAD5FD2414)
I[17:23:51.567] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_shift.c (5 symbols, 2118 refs, 25 files)
I[17:23:51.571] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp (21 symbols, 150 refs, 5 files)
I[17:23:51.580] --> $/progress
V[17:23:51.580] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"14/27","percentage":51}}}

I[17:23:51.580] --> $/progress
V[17:23:51.580] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"14/27","percentage":51}}}

V[17:23:51.582] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\USBCore.cpp (digest:=55BA50D4FF04E609)
I[17:23:51.586] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial3.cpp (3 symbols, 2254 refs, 37 files)
I[17:23:51.597] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\WMath.cpp (46 symbols, 139 refs, 3 files)
I[17:23:51.601] --> $/progress
V[17:23:51.601] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"15/27","percentage":55}}}

I[17:23:51.601] --> $/progress
V[17:23:51.601] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"15/27","percentage":55}}}

V[17:23:51.603] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\CDC.cpp (digest:=E3E9F11672EDD20A)
I[17:23:51.610] --> $/progress
V[17:23:51.610] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"16/27","percentage":59}}}

I[17:23:51.610] --> $/progress
V[17:23:51.610] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"16/27","percentage":59}}}

V[17:23:51.612] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial0.cpp (digest:=365287FBD658A80E)
I[17:23:51.620] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\PluggableUSB.cpp (3 symbols, 2225 refs, 36 files)
I[17:23:51.629] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\wiring_digital.c (7 symbols, 2343 refs, 25 files)
I[17:23:51.631] --> $/progress
V[17:23:51.631] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"17/27","percentage":62}}}

I[17:23:51.631] --> $/progress
V[17:23:51.631] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"17/27","percentage":62}}}

V[17:23:51.633] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Stream.cpp (digest:=F7D59D2B49112307)
I[17:23:51.661] --> $/progress
V[17:23:51.661] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"18/27","percentage":66}}}

I[17:23:51.661] --> $/progress
V[17:23:51.661] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"18/27","percentage":66}}}

V[17:23:51.666] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial1.cpp (digest:=487C94A1A1F49B6C)
I[17:23:51.681] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\USBCore.cpp (3 symbols, 2225 refs, 36 files)
I[17:23:51.684] --> $/progress
V[17:23:51.684] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"19/27","percentage":70}}}

I[17:23:51.684] --> $/progress
V[17:23:51.684] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"19/27","percentage":70}}}

I[17:23:51.687] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial0.cpp (5 symbols, 2283 refs, 37 files)
V[17:23:51.692] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Print.cpp (digest:=81BB1157C290C33B)
I[17:23:51.724] --> $/progress
V[17:23:51.724] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"20/27","percentage":74}}}

I[17:23:51.724] --> $/progress
V[17:23:51.724] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"20/27","percentage":74}}}

I[17:23:51.729] --> $/progress
V[17:23:51.730] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"21/27","percentage":77}}}

I[17:23:51.730] --> $/progress
V[17:23:51.730] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"21/27","percentage":77}}}

V[17:23:51.731] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Tone.cpp (digest:=1C31198B0754810E)
V[17:23:51.732] Ignored diagnostic. c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include\avr/wdt.h:464:12:value '64' out of range for constraint 'I'
V[17:23:51.732] Ignored diagnostic. c:\users\administrator\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/include\avr/wdt.h:507:23:value '64' out of range for constraint 'I'
V[17:23:51.734] Indexing C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial2.cpp (digest:=3DD4F70FCF8C4FA6)
I[17:23:51.738] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\CDC.cpp (5 symbols, 2304 refs, 37 files)
I[17:23:51.738] Failed to compile C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\CDC.cpp, index may be incomplete
I[17:23:51.747] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial1.cpp (3 symbols, 2254 refs, 37 files)
I[17:23:51.747] --> $/progress
V[17:23:51.747] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"22/27","percentage":81}}}

I[17:23:51.757] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Stream.cpp (18 symbols, 2339 refs, 35 files)
I[17:23:51.777] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Print.cpp (29 symbols, 2376 refs, 35 files)
I[17:23:51.782] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial2.cpp (3 symbols, 2254 refs, 37 files)
I[17:23:51.798] Indexed C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\Tone.cpp (18 symbols, 2452 refs, 35 files)
I[17:23:51.806] --> $/progress
V[17:23:51.806] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"23/27","percentage":85}}}

I[17:23:51.842] --> $/progress
V[17:23:51.842] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"24/27","percentage":88}}}

I[17:23:51.853] --> $/progress
V[17:23:51.853] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"25/27","percentage":92}}}

I[17:23:51.856] --> $/progress
V[17:23:51.856] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"26/27","percentage":96}}}

V[17:23:51.866] BackgroundIndex: building version 2 when background indexer is idle
V[17:23:51.877] BackgroundIndex: serving version 2 (1812086 bytes)
I[17:23:51.877] --> $/progress
V[17:23:51.877] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"end"}}}

V[17:23:56.781] <<< {"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp"}}}

I[17:23:56.781] <-- textDocument/didSave
I[17:23:56.781] File version went from 1 to 1
V[17:23:56.781] <<< {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"#include <Arduino.h>\n#line 1 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\n/*************************************\n *     TIME:2022.06.25\n *     Development Team: Zhiyi Technology Co., Ltd.\n * \n *  **************************************/\n\n#include <Servo.h>\n#define Trig 12 //Pin Tring connects to D12\n#define Echo 13 //Pin Echo connects to D13\nfloat cm; //Distance variable\n// float temp; //\n\nint ENA = 5; \nint IN1 = 3; \nint IN2 = 4;\n\nint ENB = 6; \nint IN3 = 2;\nint IN4 = 7;\n\nint Sensor1 = A2;//pin A2\nint Sensor2 = A5;//pin A5\n\nint SensorLeft;\nint SensorRight;\n\nServo myservo;  // create servo object to control a servo\n// twelve servo objects can be created on most boards\n\n#line 30 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid setup();\n#line 50 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid loop();\n#line 102 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nfloat GetDistance();\n#line 120 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid left();\n#line 133 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid right();\n#line 146 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid forward();\n#line 161 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid stop();\n#line 173 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid back();\n#line 30 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid setup()\n{\n    myservo.attach(A0);  // attaches the servo on pin 9 to the servo object\n    //Set the pin mode\n    pinMode(ENA, OUTPUT);\n    pinMode(IN1, OUTPUT);\n    pinMode(IN2, OUTPUT);\n\n    pinMode(ENB, OUTPUT);\n    pinMode(IN3, OUTPUT);\n    pinMode(IN4, OUTPUT);\n\n    pinMode(Sensor1, INPUT);\n    pinMode(Sensor2, INPUT);\n    pinMode(Trig, OUTPUT);\n    pinMode(Echo, INPUT);\n    Serial.begin(9600);\n    myservo.write(100); \n}\n\nvoid loop()\n{\n    cm = GetDistance();\n\n    SensorLeft  =  digitalRead(A2);//The sensor on the left\n    SensorRight =  digitalRead(A5);//The sensor on the Right\n    \n    // If the right sensor detects the signal, the left sensor does not detect the signal, \n    // the ultrasonic detection of the obstacle distance between 5cm to 10cm, turn to the right\n    if (SensorLeft == HIGH && SensorRight == LOW && ( cm > 5 && cm < 10))\n    {\n        right();\n    }\n    else if(SensorLeft == LOW && SensorRight == HIGH&& ( cm >5 && cm <10))\n    {\n        left();\n    }\n    else  if(SensorLeft == HIGH && SensorRight == HIGH&&( cm >11 && cm <20))\n    {\n        forward();\n    }\n    else if(SensorLeft == HIGH && SensorRight == HIGH && ( cm >20 || cm <3))\n    {\n        stop();\n    }\n    else  if((SensorLeft == LOW && SensorRight == LOW)||( cm <5))\n    {\n        back();\n    }\n\n    if (SensorLeft == LOW)\n    {\n        myservo.write(160); \n    }\n    else if (SensorRight == LOW)\n    {\n        myservo.write(40); \n    }\n    else \n    {\n        myservo.write(100); \n    }\n    \n}\n\n/*\nFunction: obtain ultrasonic sensor ranging data\nParameters: Trig, Echo\nParameter description: sensor connected to the motherboard pin port A4,A5\nTrig -------> pin D12\nEcho -------> pin D13\n*/\nfloat GetDistance()\n{\n    float distance;\n    // Send a low short pulse to Trig to trigger the ranging\n    digitalWrite(Trig, LOW); //Send a low level to Trig\n    delayMicroseconds(2);\n    digitalWrite(Trig, HIGH);\n    delayMicroseconds(10);\n    digitalWrite(Trig, LOW);\n    distance = pulseIn(Echo, HIGH) / 58.00;\n    \n    Serial.print(\"Distance = \");\n    Serial.println(distance);//The serial output distance is converted into cm\n\n\t  return distance;\n}\n\n//turn left\nvoid left(){\n  //Set the speed of the motor\n    analogWrite(ENA, 60);\n    analogWrite(ENB, 160);\n    //The right forward\n    digitalWrite(IN1, LOW);\n    digitalWrite(IN2, LOW);\n    //The left STOP\n    digitalWrite(IN3, HIGH);\n    digitalWrite(IN4, LOW);\n    Serial.println(\"left\");\n  }\n//turn right\n void right(){\n    //Set the speed of the motor\n   analogWrite(ENA, 160);\n   analogWrite(ENB, 60);\n    //The right stop\n    digitalWrite(IN1, HIGH);\n    digitalWrite(IN2, LOW);\n  //The left forward\n    digitalWrite(IN3,LOW);\n    digitalWrite(IN4,LOW);\n     Serial.println(\"right\");\n  }\n//turn forward\n void forward(){\n    //FORWARD\n    //Set the speed of the motor\n     analogWrite(ENA, 130);\n     analogWrite(ENB, 130);\n     //The right forward\n     digitalWrite(IN1, HIGH);\n     digitalWrite(IN2,LOW);\n     //The left forward\n     digitalWrite(IN3, HIGH);\n     digitalWrite(IN4, LOW);\n     Serial.println(\"forward\");\n  }\n\n//stop\n void stop(){\n    analogWrite(ENA, 0);\n    analogWrite(ENB, 0);\n  //set IN1,IN2,IN3,IN4 to LOW\n    digitalWrite(IN1,LOW);\n    digitalWrite(IN2,LOW);\n    digitalWrite(IN3, LOW);\n    digitalWrite(IN4, LOW);\n     Serial.println(\"stop\");\n  \n  }\n  //back up\n   void back(){\n    //Set the speed of the motor    \n     analogWrite(ENA, 110);\n     analogWrite(ENB, 110);\n     //The right back\n     digitalWrite(IN1, LOW);\n     digitalWrite(IN2,HIGH);\n     //The left back\n     digitalWrite(IN3,LOW);\n     digitalWrite(IN4, HIGH);\n     Serial.println(\"back\");\n  }\n\n"}],"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp","version":2}}}

I[17:23:56.781] <-- textDocument/didChange
V[17:23:56.781] ASTWorker skipping Update (1) for C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
I[17:23:56.839] Reloaded compilation database from C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\compile_commands.json
V[17:23:56.839] Broadcasting compilation database from C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680
I[17:23:56.839] ASTWorker building file C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp version 2 with command 
[G:\11.ZhiYi\5.Tutorial\1.tutorial\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\ZYC0043-2022.9.8\4_Arduino_Code\2_follow]
"C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\avr-g++.exe" --target=avr --driver-mode=g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-Id:\\Arduino\\libraries\\Servo\\src" -o "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.o" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include-fixed" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/../../../../avr/include" -ferror-limit=0 "-resource-dir=d:\\Program Files\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\lib\\clang\\14.0.0" -- "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp"
I[17:23:56.842] --> window/workDoneProgress/create(1)
V[17:23:56.842] >>> {"id":1,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}

I[17:23:56.842] Enqueueing 26 commands for indexing
V[17:23:56.842] <<< {"id":1,"jsonrpc":"2.0","result":null}

I[17:23:56.842] <-- reply(1)
I[17:23:56.842] --> $/progress
V[17:23:56.842] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}

I[17:23:56.842] --> $/progress
V[17:23:56.842] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}

V[17:23:56.848] Driver produced command: cc1 -cc1 -triple avr -fsyntax-only -flto=full -flto-unit -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name 2_follow.ino.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -fno-use-init-array -fno-use-cxa-atexit -target-cpu atmega328p -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=G:\\11.ZhiYi\\5.Tutorial\\1.tutorial\\ZYC0043\xEF\xBC\x89Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\ZYC0043-2022.9.8\\4_Arduino_Code\\2_follow" -resource-dir "d:\\Program Files\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\lib\\clang\\14.0.0" -dependency-file "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.d" -MT "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.o" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include-fixed" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/../../../../avr/include" -D F_CPU=16000000L -D ARDUINO=10607 -D ARDUINO_AVR_UNO -D ARDUINO_ARCH_AVR -I "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" -I "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" -I "d:\\Arduino\\libraries\\Servo\\src" -internal-isystem "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin/../lib/gcc/avr/7.3.0/../../../../avr/include" -Os -Wno-error=narrowing -w -std=gnu++11 -fdeprecated-macro "-fdebug-compilation-dir=G:\\11.ZhiYi\\5.Tutorial\\1.tutorial\\ZYC0043\xEF\xBC\x89Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\ZYC0043-2022.9.8\\4_Arduino_Code\\2_follow" -ferror-limit 0 -fgnuc-version=4.2.1 -fno-threadsafe-statics -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c++ "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp"
V[17:23:56.852] Reusing preamble version 1 for version 2 of C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
V[17:23:56.860] BackgroundIndex: building version 3 after loading index from disk
V[17:23:56.872] BackgroundIndex: serving version 3 (1819482 bytes)
I[17:23:56.880] --> $/progress
V[17:23:56.880] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}

I[17:23:56.880] --> $/progress
V[17:23:56.880] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"end"}}}

V[17:34:19.991] <<< {"id":"3","jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[]},"range":{"end":{"character":16,"line":79},"start":{"character":16,"line":79}},"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp"}}}

I[17:34:19.991] <-- textDocument/codeAction("3")
V[17:34:19.993] ASTWorker running EnumerateTweaks on version 2 of C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
I[17:34:19.993] --> reply:textDocument/codeAction("3") 2 ms
V[17:34:19.993] >>> {"id":"3","jsonrpc":"2.0","result":[]}

V[17:34:21.806] <<< {"id":"4","jsonrpc":"2.0","method":"textDocument/hover","params":{"position":{"character":15,"line":73},"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp"}}}

I[17:34:21.806] <-- textDocument/hover("4")
V[17:34:21.806] ASTWorker running Hover on version 2 of C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
I[17:34:21.808] --> reply:textDocument/hover("4") 2 ms
V[17:34:21.808] >>> {"id":"4","jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### variable `SensorRight`  \n\n---\nType: `int`  \n\n---\n```cpp\nint SensorRight\n```"},"range":{"end":{"character":15,"line":73},"start":{"character":4,"line":73}}}}

V[17:34:27.569] <<< {"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp"}}}

I[17:34:27.569] <-- textDocument/didSave
I[17:34:27.569] File version went from 2 to 2
V[17:34:27.570] <<< {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"#include <Arduino.h>\n#line 1 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\n/*************************************\n *     TIME:2022.06.25\n *     Development Team: Zhiyi Technology Co., Ltd.\n * \n *  **************************************/\n\n#include <Servo.h>\n#define Trig 12 //Pin Tring connects to D12\n#define Echo 13 //Pin Echo connects to D13\nfloat cm; //Distance variable\n// float temp; //\n\nint ENA = 5; \nint IN1 = 3; \nint IN2 = 4;\n\nint ENB = 6; \nint IN3 = 2;\nint IN4 = 7;\n\nint Sensor1 = A2;//pin A2\nint Sensor2 = A5;//pin A5\n\nint SensorLeft;\nint SensorRight;\n\nServo myservo;  // create servo object to control a servo\n// twelve servo objects can be created on most boards\n\n#line 30 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid setup();\n#line 50 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid loop();\n#line 102 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nfloat GetDistance();\n#line 120 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid left();\n#line 133 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid right();\n#line 146 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid forward();\n#line 161 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid stop();\n#line 173 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid back();\n#line 30 \"G:\\\\11.ZhiYi\\\\5.Tutorial\\\\1.tutorial\\\\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\\\ZYC0043-2022.9.8\\\\4_Arduino_Code\\\\2_follow\\\\2_follow.ino\"\nvoid setup()\n{\n    myservo.attach(A0);  // attaches the servo on pin 9 to the servo object\n    //Set the pin mode\n    pinMode(ENA, OUTPUT);\n    pinMode(IN1, OUTPUT);\n    pinMode(IN2, OUTPUT);\n\n    pinMode(ENB, OUTPUT);\n    pinMode(IN3, OUTPUT);\n    pinMode(IN4, OUTPUT);\n\n    pinMode(Sensor1, INPUT);\n    pinMode(Sensor2, INPUT);\n    pinMode(Trig, OUTPUT);\n    pinMode(Echo, INPUT);\n    Serial.begin(9600);\n    myservo.write(100); \n}\n\nvoid loop()\n{\n    cm = GetDistance();\n\n    SensorLeft  =  digitalRead(A2);//The sensor on the left\n    SensorRight =  digitalRead(A5);//The sensor on the Right\n    \n    // If the right sensor detects the signal, the left sensor does not detect the signal, \n    // the ultrasonic detection of the obstacle distance between 5cm to 10cm, turn to the right\n    if (SensorLeft == HIGH && SensorRight == LOW && ( cm > 5 && cm < 10))\n    {\n        right();\n    }\n    else if(SensorLeft == LOW && SensorRight == HIGH&& ( cm >5 && cm <10))\n    {\n        left();\n    }\n    else  if(SensorLeft == HIGH && SensorRight == HIGH&&( cm >11 && cm <20))\n    {\n        forward();\n    }\n    else if(SensorLeft == HIGH && SensorRight == HIGH && ( cm >20 || cm <3))\n    {\n        stop();\n    }\n    else  if((SensorLeft == LOW && SensorRight == LOW)||( cm <5))\n    {\n        back();\n    }\n\n    if (SensorLeft == LOW)\n    {\n        myservo.write(160); \n    }\n    else if (SensorRight == LOW)\n    {\n        myservo.write(40); \n    }\n    else \n    {\n        myservo.write(100); \n    }\n    \n}\n\n/*\nFunction: obtain ultrasonic sensor ranging data\nParameters: Trig, Echo\nParameter description: sensor connected to the motherboard pin port A4,A5\nTrig -------> pin D12\nEcho -------> pin D13\n*/\nfloat GetDistance()\n{\n    float distance;\n    // Send a low short pulse to Trig to trigger the ranging\n    digitalWrite(Trig, LOW); //Send a low level to Trig\n    delayMicroseconds(2);\n    digitalWrite(Trig, HIGH);\n    delayMicroseconds(10);\n    digitalWrite(Trig, LOW);\n    distance = pulseIn(Echo, HIGH) / 58.00;\n    \n    Serial.print(\"Distance = \");\n    Serial.println(distance);//The serial output distance is converted into cm\n\n\t  return distance;\n}\n\n//turn left\nvoid left(){\n  //Set the speed of the motor\n    analogWrite(ENA, 60);\n    analogWrite(ENB, 160);\n    //The right forward\n    digitalWrite(IN1, LOW);\n    digitalWrite(IN2, LOW);\n    //The left STOP\n    digitalWrite(IN3, HIGH);\n    digitalWrite(IN4, LOW);\n    Serial.println(\"left\");\n  }\n//turn right\n void right(){\n    //Set the speed of the motor\n   analogWrite(ENA, 160);\n   analogWrite(ENB, 60);\n    //The right stop\n    digitalWrite(IN1, HIGH);\n    digitalWrite(IN2, LOW);\n  //The left forward\n    digitalWrite(IN3,LOW);\n    digitalWrite(IN4,LOW);\n     Serial.println(\"right\");\n  }\n//turn forward\n void forward(){\n    //FORWARD\n    //Set the speed of the motor\n     analogWrite(ENA, 130);\n     analogWrite(ENB, 130);\n     //The right forward\n     digitalWrite(IN1, HIGH);\n     digitalWrite(IN2,LOW);\n     //The left forward\n     digitalWrite(IN3, HIGH);\n     digitalWrite(IN4, LOW);\n     Serial.println(\"forward\");\n  }\n\n//stop\n void stop(){\n    analogWrite(ENA, 0);\n    analogWrite(ENB, 0);\n  //set IN1,IN2,IN3,IN4 to LOW\n    digitalWrite(IN1,LOW);\n    digitalWrite(IN2,LOW);\n    digitalWrite(IN3, LOW);\n    digitalWrite(IN4, LOW);\n     Serial.println(\"stop\");\n  \n  }\n  //back up\n   void back(){\n    //Set the speed of the motor    \n     analogWrite(ENA, 110);\n     analogWrite(ENB, 110);\n     //The right back\n     digitalWrite(IN1, LOW);\n     digitalWrite(IN2,HIGH);\n     //The left back\n     digitalWrite(IN3,LOW);\n     digitalWrite(IN4, HIGH);\n     Serial.println(\"back\");\n  }\n\n"}],"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp","version":3}}}

I[17:34:27.570] <-- textDocument/didChange
V[17:34:27.570] ASTWorker skipping Update (2) for C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
I[17:34:27.626] Reloaded compilation database from C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\compile_commands.json
V[17:34:27.626] Broadcasting compilation database from C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680
I[17:34:27.626] ASTWorker building file C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp version 3 with command 
[G:\11.ZhiYi\5.Tutorial\1.tutorial\ZYC0043）Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\ZYC0043-2022.9.8\4_Arduino_Code\2_follow]
"C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\avr-g++.exe" --target=avr --driver-mode=g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-Id:\\Arduino\\libraries\\Servo\\src" -o "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.o" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include-fixed" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/../../../../avr/include" -ferror-limit=0 "-resource-dir=d:\\Program Files\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\lib\\clang\\14.0.0" -- "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp"
I[17:34:27.628] --> window/workDoneProgress/create(2)
V[17:34:27.628] >>> {"id":2,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}

I[17:34:27.628] Enqueueing 26 commands for indexing
V[17:34:27.628] <<< {"id":2,"jsonrpc":"2.0","result":null}

I[17:34:27.629] <-- reply(2)
I[17:34:27.629] --> $/progress
V[17:34:27.629] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}

I[17:34:27.629] --> $/progress
V[17:34:27.629] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}

V[17:34:27.635] Driver produced command: cc1 -cc1 -triple avr -fsyntax-only -flto=full -flto-unit -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name 2_follow.ino.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -fno-use-init-array -fno-use-cxa-atexit -target-cpu atmega328p -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=G:\\11.ZhiYi\\5.Tutorial\\1.tutorial\\ZYC0043\xEF\xBC\x89Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\ZYC0043-2022.9.8\\4_Arduino_Code\\2_follow" -resource-dir "d:\\Program Files\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\lib\\clang\\14.0.0" -dependency-file "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.d" -MT "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp.o" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/include-fixed" -isystem "c:\\users\\administrator\\appdata\\local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin\\../lib/gcc/avr/7.3.0/../../../../avr/include" -D F_CPU=16000000L -D ARDUINO=10607 -D ARDUINO_AVR_UNO -D ARDUINO_ARCH_AVR -I "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" -I "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" -I "d:\\Arduino\\libraries\\Servo\\src" -internal-isystem "C:\\Users\\Administrator\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7\\bin/../lib/gcc/avr/7.3.0/../../../../avr/include" -Os -Wno-error=narrowing -w -std=gnu++11 -fdeprecated-macro "-fdebug-compilation-dir=G:\\11.ZhiYi\\5.Tutorial\\1.tutorial\\ZYC0043\xEF\xBC\x89Four-way tracking and obstacle avoidance following car kit v2.0 tutorial\\ZYC0043-2022.9.8\\4_Arduino_Code\\2_follow" -ferror-limit 0 -fgnuc-version=4.2.1 -fno-threadsafe-statics -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c++ "C:\\Users\\Administrator\\AppData\\Local\\Temp\\arduino-language-server3179334680\\sketch\\2_follow.ino.cpp"
V[17:34:27.638] Reusing preamble version 1 for version 3 of C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
V[17:34:27.647] BackgroundIndex: building version 4 after loading index from disk
V[17:34:27.658] BackgroundIndex: serving version 4 (1819482 bytes)
I[17:34:27.666] --> $/progress
V[17:34:27.666] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}

I[17:34:27.666] --> $/progress
V[17:34:27.666] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"end"}}}

V[17:34:32.724] <<< {"id":"5","jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[]},"range":{"end":{"character":52,"line":77},"start":{"character":52,"line":77}},"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp"}}}

I[17:34:32.724] <-- textDocument/codeAction("5")
V[17:34:32.726] ASTWorker running EnumerateTweaks on version 3 of C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
I[17:34:32.726] --> reply:textDocument/codeAction("5") 2 ms
V[17:34:32.726] >>> {"id":"5","jsonrpc":"2.0","result":[]}

V[17:34:33.606] <<< {"id":"6","jsonrpc":"2.0","method":"textDocument/hover","params":{"position":{"character":13,"line":72},"textDocument":{"uri":"file:///C:/Users/Administrator/AppData/Local/Temp/arduino-language-server3179334680/sketch/2_follow.ino.cpp"}}}

I[17:34:33.606] <-- textDocument/hover("6")
V[17:34:33.606] ASTWorker running Hover on version 3 of C:\Users\Administrator\AppData\Local\Temp\arduino-language-server3179334680\sketch\2_follow.ino.cpp
I[17:34:33.608] --> reply:textDocument/hover("6") 1 ms
V[17:34:33.608] >>> {"id":"6","jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### variable `SensorLeft`  \n\n---\nType: `int`  \n\n---\n```cpp\nint SensorLeft\n```"},"range":{"end":{"character":14,"line":72},"start":{"character":4,"line":72}}}}

V[17:34:35.370] <<< {"id":"7","jsonrpc":"2.0","method":"shutdown","params":null}

I[17:34:35.370] <-- shutdown("7")
I[17:34:35.370] --> reply:shutdown("7") 0 ms
V[17:34:35.370] >>> {"id":"7","jsonrpc":"2.0","result":null}

