mirror of
https://gitlab.com/lander-team/lander-cpp.git
synced 2025-06-15 22:56:53 +00:00
fixed file open error, it works!
This commit is contained in:
parent
cce72b9114
commit
05663a5ac7
8
.vscode/extensions.json
vendored
8
.vscode/extensions.json
vendored
@ -1,8 +1,10 @@
|
||||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"ms-vscode.cpptools",
|
||||
"wayou.vscode-todo-highlight",
|
||||
"platformio.platformio-ide",
|
||||
"usernamehw.errorlens",
|
||||
"platformio.platformio-ide"
|
||||
"wayou.vscode-todo-highlight"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ void write2CSV(outVector &stateVector, Vehicle &State) {
|
||||
}
|
||||
|
||||
// Open simOut.csv
|
||||
File dataFile = SD.open("simOut.csv");
|
||||
File dataFile = SD.open("simOut.csv", FILE_WRITE);
|
||||
if (dataFile) {
|
||||
Serial.println("File successfully opened!");
|
||||
dataFile.println("It works!");
|
||||
|
@ -86,7 +86,9 @@ void loop() {
|
||||
init_Vehicle(State);
|
||||
Serial.println("Last run duration:" + String(millis() - last + " ms"));
|
||||
|
||||
delay(1000);
|
||||
Serial.println("Sim Complete!");
|
||||
Serial.readString();
|
||||
|
||||
Serial.println("Restarting Sim");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user