{"action":"created","issue":{"url":"https://api.github.com/repos/ev3dev/ev3dev/issues/555","repository_url":"https://api.github.com/repos/ev3dev/ev3dev","labels_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/555/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/555/comments","events_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/555/events","html_url":"https://github.com/ev3dev/ev3dev/issues/555","id":136535280,"number":555,"title":"Incorrect HiTechnic-Angle-Sensor readout","user":{"login":"harmooni","id":17478234,"avatar_url":"https://avatars.githubusercontent.com/u/17478234?v=3","gravatar_id":"","url":"https://api.github.com/users/harmooni","html_url":"https://github.com/harmooni","followers_url":"https://api.github.com/users/harmooni/followers","following_url":"https://api.github.com/users/harmooni/following{/other_user}","gists_url":"https://api.github.com/users/harmooni/gists{/gist_id}","starred_url":"https://api.github.com/users/harmooni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmooni/subscriptions","organizations_url":"https://api.github.com/users/harmooni/orgs","repos_url":"https://api.github.com/users/harmooni/repos","events_url":"https://api.github.com/users/harmooni/events{/privacy}","received_events_url":"https://api.github.com/users/harmooni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/sensors","name":"sensors","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ev3dev/ev3dev/milestones/3","html_url":"https://github.com/ev3dev/ev3dev/milestones/ev3dev-next","labels_url":"https://api.github.com/repos/ev3dev/ev3dev/milestones/3/labels","id":1478678,"number":3,"title":"ev3dev-next","description":"Tracking for the next image release","creator":{"login":"dlech","id":963645,"avatar_url":"https://avatars.githubusercontent.com/u/963645?v=3","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":5,"state":"open","created_at":"2015-12-30T23:36:51Z","updated_at":"2016-02-26T19:42:17Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-02-25T22:46:59Z","updated_at":"2016-02-27T00:05:54Z","closed_at":null,"body":"Hello,\r\n\r\nI'm facing problems using the HiTechnic Angle Sensor. Only the 'ANGLE' mode returns correct values.\r\nThe output of the remaining modes can't be right. Maybe it's an endianness problem.\r\n\r\nOutput of the sensor:\r\n\r\n```\r\nANGLE:  41\r\nANGLE-ACC:  -2013265921\r\nSPEED:  -31489 \r\n\r\nANGLE:  38\r\nANGLE-ACC:  -2097152001\r\nSPEED:  -31489 \r\n\r\nANGLE:  37\r\nANGLE-ACC:  2147483647\r\nSPEED:  -32770 \r\n\r\nANGLE:  37\r\nANGLE-ACC:  2130706431\r\nSPEED:  -33026 \r\n\r\nANGLE:  36\r\nANGLE-ACC:  2130706431\r\nSPEED:  -33026 \r\n\r\nANGLE:  38\r\nANGLE-ACC:  -2063597569\r\nSPEED:  -32257 \r\n\r\nANGLE:  42\r\nANGLE-ACC:  -1946157057\r\nSPEED:  -29441 \r\n```\r\n\r\nAttached is the documentation of the sensor.\r\n\r\nI tested it on ev3-ev3dev-jessie-2015-12-30.img - kernel version: 3.16.7-ckt21-9-ev3dev-ev3\r\nand on ev3-ev3dev-jessie-2015-09-13.img\r\n\r\nMany thanks in advance.\r\n\r\n![angle_sensor](https://cloud.githubusercontent.com/assets/17478234/13336391/049eb55a-dc16-11e5-8fba-cdee3f5106c9.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/ev3dev/ev3dev/issues/comments/189532211","html_url":"https://github.com/ev3dev/ev3dev/issues/555#issuecomment-189532211","issue_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/555","id":189532211,"user":{"login":"harmooni","id":17478234,"avatar_url":"https://avatars.githubusercontent.com/u/17478234?v=3","gravatar_id":"","url":"https://api.github.com/users/harmooni","html_url":"https://github.com/harmooni","followers_url":"https://api.github.com/users/harmooni/followers","following_url":"https://api.github.com/users/harmooni/following{/other_user}","gists_url":"https://api.github.com/users/harmooni/gists{/gist_id}","starred_url":"https://api.github.com/users/harmooni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmooni/subscriptions","organizations_url":"https://api.github.com/users/harmooni/orgs","repos_url":"https://api.github.com/users/harmooni/repos","events_url":"https://api.github.com/users/harmooni/events{/privacy}","received_events_url":"https://api.github.com/users/harmooni/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T00:05:54Z","updated_at":"2016-02-27T00:05:54Z","body":"Hello,\r\n\r\nA short update:\r\n\r\n- I added support for LEGO_SENSOR_DATA_S32_BE and the 'ANGLE-ACC' mode is working now.\r\n\r\n- I realized that the 'ANGLE' mode was'nt correct after all: Only the unscaled 2° increments were shown. I added an extra scale function for this mode.\r\n\r\n- I still have problems with the 'SPEED' mode (using LEGO_SENSOR_DATA_S16_BE). Spinning the axle counterclockwise the output looks fine. If it's rotating clockwise there is still an overflow.\r\n\r\nAxle rotates counterclockwise:\r\n```\r\nANGLE 178\r\nANGLE-ACC -101\r\nSPEED 0 \r\n\r\nANGLE 3\r\nANGLE-ACC -101\r\nSPEED -191 \r\n\r\nANGLE 3\r\nANGLE-ACC -300\r\nSPEED -9 \r\n\r\nANGLE 338\r\nANGLE-ACC -300\r\nSPEED 0 \r\n```\r\n\r\nAxle rotates clockwise:\r\n```\r\nANGLE 131\r\nANGLE-ACC -469\r\nSPEED 0 \r\n\r\nANGLE 285\r\nANGLE-ACC -351\r\nSPEED -65346 \r\n\r\nANGLE 298\r\nANGLE-ACC -340\r\nSPEED -65346 \r\n\r\nANGLE 299\r\nANGLE-ACC -339\r\nSPEED 0 \r\n```"}}