Skip to content

Commit

Permalink
Enable SITL for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Apr 27, 2024
1 parent a4fd2bc commit c71f7d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions js/sitl.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ var Ser2TCP = {
if (err)
console.log(err);
});
} else if (GUI.operating_system == 'MacOS') {
path = './../resources/sitl/macos/Ser2TCP'
chmod(path, 0o755, (err) => {
if (err)
console.log(err);
});
} else {
alert(GUI.operating_system);
return;
}

Expand Down Expand Up @@ -217,7 +224,16 @@ var SITLProcess = {
if (err)
console.log(err);
});
} else if (GUI.operating_system == 'MacOS') {
sitlExePath = path.join(__dirname, './../resources/sitl/macos/inav_SITL');
eepromPath = `${app.getPath('userData')}/${eepromFileName}`
chmod(sitlExePath, 0o755, err => {
if (err)
console.log(err);
});

} else {
alert(GUI.operating_system);
return;
}

Expand Down
Binary file added resources/sitl/macos/inav_SITL
Binary file not shown.

0 comments on commit c71f7d7

Please sign in to comment.