René's URL Explorer Experiment


Title: Gyro sensor never reads negative · Issue #739 · ev3dev-lang-java/ev3dev-lang-java · GitHub

Open Graph Title: Gyro sensor never reads negative · Issue #739 · ev3dev-lang-java/ev3dev-lang-java

X Title: Gyro sensor never reads negative · Issue #739 · ev3dev-lang-java/ev3dev-lang-java

Description: Writing code to demo the gyro sensor was really straightforward thanks to the examples. However, the sensor never reads negative and I don't see a way to set the initial value (to some large multiple of 360). This is a dire problem when ...

Open Graph Description: Writing code to demo the gyro sensor was really straightforward thanks to the examples. However, the sensor never reads negative and I don't see a way to set the initial value (to some large multip...

X Description: Writing code to demo the gyro sensor was really straightforward thanks to the examples. However, the sensor never reads negative and I don't see a way to set the initial value (to some large mu...

Opengraph URL: https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Gyro sensor never reads negative","articleBody":"Writing code to demo the gyro sensor was really straightforward thanks to the examples. However, the sensor never reads negative and I don't see a way to set the initial value (to some large multiple of 360).\r\n\r\nThis is a dire problem when turning left. Is there a work-around I haven't found?\r\n\r\n\r\n(Code is in Scala - it may look strange, but does exactly what you think it does.)\r\n```\r\nimport ev3dev.actuators.LCD\r\nimport ev3dev.actuators.ev3.EV3Led\r\nimport ev3dev.sensors.EV3Key\r\nimport ev3dev.sensors.ev3.EV3GyroSensor\r\nimport lejos.hardware.{Key, KeyListener}\r\nimport lejos.hardware.lcd.GraphicsLCD\r\nimport lejos.hardware.port.SensorPort\r\n\r\nobject WatchGyro {\r\n  def main(args: Array[String]):Unit = {\r\n    watchGyro()\r\n  }\r\n\r\n  def watchGyro(): Unit = {\r\n\r\n    //Set status lights to red\r\n    val leftLed = new EV3Led(EV3Led.LEFT)\r\n    val rightLed = new EV3Led(EV3Led.RIGHT)\r\n    leftLed.setPattern(2) //red \r\n    rightLed.setPattern(3) //yellow - can they really be different colors? cool!\r\n\r\n    val lcd = LCD.getInstance()\r\n\r\n    val gyroSensor = new EV3GyroSensor(SensorPort.S2)\r\n    val gyroSampleProvider = gyroSensor.getAngleMode\r\n    val gyroArray = new Array[Float](gyroSensor.sampleSize())\r\n\r\n    var keepGoing = true\r\n\r\n    val anyButton = new EV3Key(EV3Key.BUTTON_ALL)\r\n    val anyButtonListener = new KeyListener {\r\n      override def keyPressed(k: Key): Unit = ()\r\n\r\n      override def keyReleased(k: Key): Unit = {\r\n        keepGoing = false\r\n      }\r\n    }\r\n    anyButton.addKeyListener(anyButtonListener)\r\n    \r\n    do {\r\n      gyroSampleProvider.fetchSample(gyroArray,0)\r\n      //Write the gyro value to the display\r\n      lcd.setColor(GraphicsLCD.WHITE)\r\n      lcd.fillRect(0, 0, lcd.getWidth, lcd.getHeight)\r\n      lcd.setColor(GraphicsLCD.BLACK)\r\n      lcd.drawString(s\"${gyroArray(0)}\", 0, 25, 0)\r\n      lcd.refresh()\r\n\r\n      System.out.println(s\"${gyroArray(0)}\")\r\n    } while (keepGoing)\r\n\r\n    //Set status lights to green\r\n    leftLed.setPattern(1) //green\r\n    rightLed.setPattern(1)\r\n  }\r\n}\r\n```","author":{"url":"https://github.com/dwalend","@type":"Person","name":"dwalend"},"datePublished":"2020-10-12T03:18:31Z","url":"https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5025a241-8150-658e-455d-6bc9d306965f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB99A:34A55:9C3D4D:E0A76D:6AFD8D51
html-safe-nonce64a1043ec6a464ad3ff5a60f253f3f28cc29d6e22d5f66c980dba4656d67dc25
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTlBOjM0QTU1OjlDM0Q0RDpFMEE3NkQ6NkFGRDhENTEiLCJ2aXNpdG9yX2lkIjoiNTEzODA3NjQzNDYzMTA2OTAwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc59bf8ab29b5bd3c6fdd5b77edadfc6a0caba48ebfd56ac4055e242c5bb58377
hovercard-subject-tagissue:719008173
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ev3dev-lang-java/ev3dev-lang-java/739/issue_layout
twitter:imagehttps://opengraph.githubassets.com/75e4503a672c446be29ecfe83bf7296714f80ffa43af476852edb62910f8fa48/ev3dev-lang-java/ev3dev-lang-java/issues/739
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/75e4503a672c446be29ecfe83bf7296714f80ffa43af476852edb62910f8fa48/ev3dev-lang-java/ev3dev-lang-java/issues/739
og:image:altWriting code to demo the gyro sensor was really straightforward thanks to the examples. However, the sensor never reads negative and I don't see a way to set the initial value (to some large multip...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedwalend
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
go-importgithub.com/ev3dev-lang-java/ev3dev-lang-java git https://github.com/ev3dev-lang-java/ev3dev-lang-java.git
octolytics-dimension-user_id17526590
octolytics-dimension-user_loginev3dev-lang-java
octolytics-dimension-repository_id45205585
octolytics-dimension-repository_nwoev3dev-lang-java/ev3dev-lang-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45205585
octolytics-dimension-repository_network_root_nwoev3dev-lang-java/ev3dev-lang-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fev3dev-lang-java%2Fev3dev-lang-java%2Fissues%2F739
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fev3dev-lang-java%2Fev3dev-lang-java%2Fissues%2F739
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ev3dev-lang-java%2Fev3dev-lang-java
Reloadhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739
Reloadhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739
Reloadhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739
ev3dev-lang-javahttps://github.com/ev3dev-lang-java
ev3dev-lang-javahttps://github.com/ev3dev-lang-java/ev3dev-lang-java
Codehttps://github.com/ev3dev-lang-java/ev3dev-lang-java
Issues21 (21)https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues
Pull requests4 (4)https://github.com/ev3dev-lang-java/ev3dev-lang-java/pulls
Discussionshttps://github.com/ev3dev-lang-java/ev3dev-lang-java/discussions
Actionshttps://github.com/ev3dev-lang-java/ev3dev-lang-java/actions
Security and qualityhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/security
Insightshttps://github.com/ev3dev-lang-java/ev3dev-lang-java/insights
https://github.com/ev3dev-lang-java/ev3dev-lang-java
New issuehttps://github.com/login?return_to=https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739
New issuehttps://github.com/login?return_to=https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739
Gyro sensor never reads negativehttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#top
https://github.com/jabrena
waiting user feedbackhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues?q=state%3Aopen%20label%3A%22waiting%20user%20feedback%22
https://github.com/dwalend
dwalendhttps://github.com/dwalend
on Oct 12, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issue-719008173
https://github.com/dwalend
dwalendhttps://github.com/dwalend
on Oct 12, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issuecomment-706838323
https://github.com/jabrena
jabrenahttps://github.com/jabrena
on Nov 3, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issuecomment-721263879
https://github.com/JakubVanek
JakubVanekhttps://github.com/JakubVanek
on Nov 26, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issuecomment-734162708
#693https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/693
jabrenahttps://github.com/jabrena
on Nov 27, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#event-4045137700
https://github.com/jabrena
jabrenahttps://github.com/jabrena
on Nov 29, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issuecomment-735421069
https://github.com/jabrena
jabrenahttps://github.com/jabrena
on Dec 13, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issuecomment-744083434
https://github.com/jabrena
jabrenahttps://github.com/jabrena
on Dec 27, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issuecomment-751470125
@dwalendhttps://github.com/dwalend
jabrenahttps://github.com/jabrena
waiting user feedbackhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues?q=state%3Aopen%20label%3A%22waiting%20user%20feedback%22
on Dec 27, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#event-4150304102
https://github.com/dwalend
dwalendhttps://github.com/dwalend
on Dec 27, 2020https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739#issuecomment-751478234
#693https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/693
Sign up for freehttps://github.com/signup?return_to=https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739
Sign in to commenthttps://github.com/login?return_to=https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/739
jabrenahttps://github.com/jabrena
waiting user feedbackhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues?q=state%3Aopen%20label%3A%22waiting%20user%20feedback%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.