![]() |
[FTC]: Need Help Programming Joystick via Samantha
Hello Chief Delphi,
We are FTC Team 8660, the Charging Champions. We are a rookie team who needs help programming the Logitech controller provided by FIRST. We are using RobotC. We were able to configure the Samantha module to the router and have made many, many attempts programming it but we're unable to to get it to work. After searching on online blogs, tutorials, and videos for a long time, we were unable to find the answers, so we came here seeking advice. We also cannot get the joystick to work, even by wired connections.
All help is appreciated. Go FTC Teams!!! Sincerely, Charging Champions FTC Team 8660 |
Re: [FTC]: Need Help Programming Joystick via Samantha
Here is our Teleop code from last year... see if this helps. Shorter version below.
Code:
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, HTServo)Code:
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, HTServo) |
Re: [FTC]: Need Help Programming Joystick via Samantha
All of our archived code from the last 2 seasons can be found at: http://www.4211thebombers.org/UsefullLinks.html
The "Team 4211's Block Party Code" and "Team 4211's Ring it Up Code" links contain all the autonomous and telop code that we ran at competitions. They have examples of various techniques and strategies for controlling the robot in telop and autonomous, including how to separate the joystick inputs into different threads to allow faster response times. To more directly answer your question, here is a program with all the basic telop components you need along with various control schemes for driving a robot and for moving a servo. Just uncomment a section you want to try and it will work on a robot. Code:
#pragma config(Hubs, S1, HTMotor, HTServo, none, none) |
Re: [FTC]: Need Help Programming Joystick via Samantha
You should check out the youtube videos posted by the Robogamers. The channel is RobogamersTV
https://www.youtube.com/user/robogamersonline Watching their videos helped us a lot. They have one specifically on joystick control programming. https://www.youtube.com/watch?v=3HF31q2mnfA The Anderson wiring will probably help as well. https://www.youtube.com/watch?v=M1FsxbLcM0w Hope this helps. |
| All times are GMT -5. The time now is 18:23. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi