Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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}"

}




]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"githubPullRequests.ignoredPullRequestBranches": [
"master"
]
}
4 changes: 2 additions & 2 deletions tools/dc_motor_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down