payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/kauailabs/allwpilib/issues/5","repository_url":"https://api.github.com/repos/kauailabs/allwpilib","labels_url":"https://api.github.com/repos/kauailabs/allwpilib/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/kauailabs/allwpilib/issues/5/comments","events_url":"https://api.github.com/repos/kauailabs/allwpilib/issues/5/events","html_url":"https://github.com/kauailabs/allwpilib/issues/5","id":467786414,"node_id":"MDU6SXNzdWU0Njc3ODY0MTQ=","number":5,"title":"PWM Servo \"Only a single Channel Capability is allowed\"","user":{"login":"KadenK","id":25109936,"node_id":"MDQ6VXNlcjI1MTA5OTM2","avatar_url":"https://avatars1.githubusercontent.com/u/25109936?v=4","gravatar_id":"","url":"https://api.github.com/users/KadenK","html_url":"https://github.com/KadenK","followers_url":"https://api.github.com/users/KadenK/followers","following_url":"https://api.github.com/users/KadenK/following{/other_user}","gists_url":"https://api.github.com/users/KadenK/gists{/gist_id}","starred_url":"https://api.github.com/users/KadenK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KadenK/subscriptions","organizations_url":"https://api.github.com/users/KadenK/orgs","repos_url":"https://api.github.com/users/KadenK/repos","events_url":"https://api.github.com/users/KadenK/events{/privacy}","received_events_url":"https://api.github.com/users/KadenK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-14T02:23:44Z","updated_at":"2019-07-14T02:23:44Z","closed_at":null,"author_association":"COLLABORATOR","body":"With a simple program trying to control a Hitech servo, the program compiles and deploys properly, but does not run correctly on the Pi.\r\n\r\nProgram:\r\n```\r\npublic class PWMServo extends TimedRobot {\r\n\r\n    Servo servo;\r\n    int time;\r\n\r\n  @Override\r\n  public void robotInit() {\r\n      servo = new Servo(0);\r\n  }\r\n\r\n  @Override\r\n  public void teleopPeriodic() {\r\n    if (servo.get() < 0.05) {\r\n        servo.set(1);\r\n    }\r\n    else if (servo.get() < 0.95) {\r\n        servo.set(0);\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nError presented in /var/local/kauailabs/logs/FRC_UserProgram.log\r\n\r\n> ********** Robot program starting **********\r\n> Error at frc.robot.PWMServo.robotInit(PWMServo.java:32): Unhandled exception: edu.wpi.first.hal.util.UncleanStatusException:  Code: -20021. Only a single Channel Capability is allowed\r\n> \tat edu.wpi.first.hal.PWMJNI.setPWMPeriodScale(Native Method)\r\n> \tat edu.wpi.first.wpilibj.PWM.setPeriodMultiplier(PWM.java:291)\r\n> \tat edu.wpi.first.wpilibj.Servo.<init>(Servo.java:39)\r\n> \tat frc.robot.PWMServo.robotInit(PWMServo.java:32)\r\n> \tat edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:63)\r\n> \tat edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:263)\r\n> \tat frc.robot.Main.main(Main.java:27)\r\n> \r\n> Warning at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:274): Robots should not quit, but yours did!\r\n> Error at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:276): The startCompetition() method (or methods called by it) should have handled the exception above."}}
other: {"actor":{"display_login":"KadenK"}}