View unanswered posts | View active topics It is currently Fri Aug 29, 2014 8:17 am






Reply to topic  [ 3 posts ] 
Logitech Controller Problem 
Author Message
Rookie

Joined: Tue Jun 18, 2013 6:04 pm
Posts: 29
Post Logitech Controller Problem
We installed a Logitech controller on one of my students laptops and the left toggle will not cooperate. It is always powering in the forward position. Of course the toggle is centered, but the debugger window shows it as being in the forward position. I know the program is solid because we have installed it on two other bots and they work fine. We have tried several controllers to no avail. I have re-installed the program, the firmware and the controller several times to no avail.
I don't know if it matters, but the laptop is the only one running Windows 8. We have also installed a Bluetooth nodule, as we did on the other two.
Any ideas?


Sat Jun 29, 2013 6:54 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 566
Post Re: Logitech Controller Problem
There are a couple of things I suggest checking to help narrow down where the issue lies:

- Does the problem occur with multiple controllers, or just that controller?
- Does the problem occur with multiple computers, or just that computer?
- Is the X/D switch on the back of the controller set to X (Xbox) or D (Digital) mode (if applicable)?
- Is the 'Mode' button on the face of the controller set to On or Off (next to the D-pad, there is an LED next to the button that should indicate the status of the Mode setting)?

Also, which values specifically is the joystick showing when it is centered? You may need to create a dead-band for the joystick in your program to compensate for any physical off-centering that specific joystick may have. There is a video in the ROBOTC for LEGO MINDSTORMS Video Trainer Curriculum (http://www.education.rec.ri.cmu.edu/pre ... index.html under the Remote Control -> Remote Control Basics -> Improving Remote Control section) that both explains how to create this deadband and why it is necessary for some joystick controllers.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Mon Jul 01, 2013 11:19 am
Profile
Rookie

Joined: Tue Jun 18, 2013 6:04 pm
Posts: 29
Post Re: Logitech Controller Problem
Hi John,
Thanks for responding. This is very frustrating as I have been trying to fix it for a week now. I have reinstalled the controller software, switched controllers, restarted computer, and re-downloaded the program several times.


-I have 2 working Logitech controllers on different computers.

-The problem only occurs on one computer. (Windows eight)

-Switch on the back is set to "D".

-The Mode button is off.

The left toggle is extreme forward position and only returns to that position. We did set dead zones on the controllers a +15/-15.

Code:
#include "JoystickDriver.c"

task main()
{
   while(1 == 1)
   {
      getJoystickSettings(joystick);

      if (joy1Btn(1) ==1)

      {
         motor[motorA] = 50;

      }

      else

      {
         motor[motorA] = 0;
      }

      if (joy1Btn(2) == 1)

      {
         motor[motorA] = -50;
      }

      else
      {
         motor[motorA] = 0;
      }

      if(joystick.joy1_y1 < 15 && joystick.joy1_y1/3 > -15)

      {
         motor[motorC] = 0;
      }

      else
      {
         motor[motorC] = joystick.joy1_y1/2;
      }

      if(joystick.joy1_y2 < 15 && joystick.joy1_y2/3 > -15)

      {
         motor[motorB]=0;
      }

      else
      {
         motor[motorB] = joystick.joy1_y2/2;
      }
   }
}


Mon Jul 01, 2013 12:07 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.