diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..82d305a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,55 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "type": "cmake", + "request": "launch", + "name": "CMake: Script debugging", + "cmakeDebugType": "script", + "scriptPath": "${workspaceFolder}/<...>.cmake" + }, + { + "type": "cmake", + "request": "launch", + "name": "CMake: Externally launched", + "cmakeDebugType": "external", + "pipeName": "<...>" + }, + + + { + "name": "Attach to Chrome", + "port": 9222, + "request": "attach", + "type": "chrome", + "webRoot": "${workspaceFolder}" + }, + + { + "type": "cmake", + "request": "launch", + "name": "CMake: Configure project", + "cmakeDebugType": "configure", + "clean": false, + "configureAll": false + }, + + + { + "name": "Launch Chrome", + "request": "launch", + "type": "chrome", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + + } + + + + + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6c2ff60 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "githubPullRequests.ignoredPullRequestBranches": [ + "master" + ] +} \ No newline at end of file diff --git a/tools/dc_motor_plot.py b/tools/dc_motor_plot.py index 6ead6ae..6d720e7 100644 --- a/tools/dc_motor_plot.py +++ b/tools/dc_motor_plot.py @@ -13,9 +13,9 @@ MAX_FRICTION_FORCE = NORMAL_FORCE * FRICTION_COEFFICIENT -# Mimics coulomb friction model (model used in b2FrictionJoint) +# نموذج الاحتكاك الكولومي ( نموذج المستخدم في b2FrictionJoint ) def get_friction_force(force): - if force < 0: # No friction force if no force applied + if force < 0: # لاقوه احتكاك اذا لم تطبق قوه return 0 if force > MAX_FRICTION_FORCE: return MAX_FRICTION_FORCE