Title: Ensure that Motor/Sensor folders was created by EV3Dev · Issue #555 · ev3dev-lang-java/ev3dev-lang-java · GitHub
Open Graph Title: Ensure that Motor/Sensor folders was created by EV3Dev · Issue #555 · ev3dev-lang-java/ev3dev-lang-java
X Title: Ensure that Motor/Sensor folders was created by EV3Dev · Issue #555 · ev3dev-lang-java/ev3dev-lang-java
Description: After one user question: #554 maybe it is the moment to fix this possible bad user experience in the proper way. Currently, the library wait 0.5 seconds (Fixed period of time) in order that Linux+EV3Dev process mount the folder about the...
Open Graph Description: After one user question: #554 maybe it is the moment to fix this possible bad user experience in the proper way. Currently, the library wait 0.5 seconds (Fixed period of time) in order that Linux+E...
X Description: After one user question: #554 maybe it is the moment to fix this possible bad user experience in the proper way. Currently, the library wait 0.5 seconds (Fixed period of time) in order that Linux+E...
Opengraph URL: https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/555
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ensure that Motor/Sensor folders was created by EV3Dev","articleBody":"After one user question:\r\nhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/554\r\n\r\nmaybe it is the moment to fix this possible bad user experience in the proper way. Currently, the library wait 0.5 seconds (Fixed period of time) in order that Linux+EV3Dev process mount the folder about the motor/sensor with all information. \r\n\r\n``` java\r\n public BaseRegulatedMotor(final Port motorPort, float moveP, float moveI, float moveD,\r\n float holdP, float holdI, float holdD, int offset, int maxSpeed) {\r\n\r\n List\u003cRegulatedMotorListener> list = new ArrayList\u003c>();\r\n listenerList = Collections.synchronizedList(list);\r\n\r\n if(log.isInfoEnabled())\r\n log.info(\"Configuring motor connected on Port: {}\", motorPort.getName());\r\n\r\n MAX_SPEED_AT_9V = maxSpeed;\r\n final EV3DevPlatforms ev3DevPlatforms = EV3DevPlatforms.getInstance();\r\n final String port = ev3DevPlatforms.getMotorPort(motorPort);\r\n\r\n if(log.isDebugEnabled())\r\n log.debug(\"Detecting motor on port: {}\", port);\r\n this.detect(LEGO_PORT, port);\r\n if(log.isDebugEnabled())\r\n log.debug(\"Setting port in mode: {}\", TACHO_MOTOR);\r\n this.setStringAttribute(MODE, TACHO_MOTOR);\r\n Delay.msDelay(500);\r\n this.detect(TACHO_MOTOR, port);\r\n Delay.msDelay(500);\r\n this.setStringAttribute(COMMAND, RESET);\r\n if(log.isDebugEnabled())\r\n log.debug(\"Motor ready to use on Port: {}\",motorPort.getName());\r\n }\r\n```\r\n\r\nMaybe, it could be interesting to create a POC to see what is the best approach to do it.\r\n\r\nBasically, we should introduce a asynchronous process to wait for the existency of a determinated number of folders.\r\n\r\n","author":{"url":"https://github.com/jabrena","@type":"Person","name":"jabrena"},"datePublished":"2018-11-08T20:43:52Z","url":"https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/555"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eba54628-6434-1313-6314-30450d2541c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A536:34A55:9C2682:E085AC:6AFD8D49 |
| html-safe-nonce | 75fad55a2e579fd57d6fdf5b7056555ac04da68ec49dd25064b338d9d1e1a991 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTM2OjM0QTU1OjlDMjY4MjpFMDg1QUM6NkFGRDhENDkiLCJ2aXNpdG9yX2lkIjoiODc2NDI0NDcyMDUxNjY5NzQxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf7a4c4c0cdff89435a3e9a672c3b8bd55331e30662232ac73033463d0d7933c |
| hovercard-subject-tag | issue:378908858 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ev3dev-lang-java/ev3dev-lang-java/555/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5d3f716b245ea9227313e8347f365ce7a29467851b4db05b0aa2dd1be3eda0f/ev3dev-lang-java/ev3dev-lang-java/issues/555 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5d3f716b245ea9227313e8347f365ce7a29467851b4db05b0aa2dd1be3eda0f/ev3dev-lang-java/ev3dev-lang-java/issues/555 |
| og:image:alt | After one user question: #554 maybe it is the moment to fix this possible bad user experience in the proper way. Currently, the library wait 0.5 seconds (Fixed period of time) in order that Linux+E... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jabrena |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/ev3dev-lang-java/ev3dev-lang-java git https://github.com/ev3dev-lang-java/ev3dev-lang-java.git |
| octolytics-dimension-user_id | 17526590 |
| octolytics-dimension-user_login | ev3dev-lang-java |
| octolytics-dimension-repository_id | 45205585 |
| octolytics-dimension-repository_nwo | ev3dev-lang-java/ev3dev-lang-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45205585 |
| octolytics-dimension-repository_network_root_nwo | ev3dev-lang-java/ev3dev-lang-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width