Steam telepítése
belépés
|
nyelv
简体中文 (egyszerűsített kínai)
繁體中文 (hagyományos kínai)
日本語 (japán)
한국어 (koreai)
ไทย (thai)
Български (bolgár)
Čeština (cseh)
Dansk (dán)
Deutsch (német)
English (angol)
Español - España (spanyolországi spanyol)
Español - Latinoamérica (latin-amerikai spanyol)
Ελληνικά (görög)
Français (francia)
Italiano (olasz)
Bahasa Indonesia (indonéz)
Nederlands (holland)
Norsk (norvég)
Polski (lengyel)
Português (portugáliai portugál)
Português - Brasil (brazíliai portugál)
Română (román)
Русский (orosz)
Suomi (finn)
Svenska (svéd)
Türkçe (török)
Tiếng Việt (vietnámi)
Українська (ukrán)
Fordítási probléma jelentése
I have the same problem as you on ship simulator '08. I am using an arduino set up as a joystick controller. And real kobelt 6555 ship throttle/pitch levers. It is working just fine when calibrating in "Game Controllers". The x-/z-axis looks smooth in test mode. But when i config in ship sim i get the same message as you; "Joy1 POV 10". I see that you have written the solution on your problem over here. But i dont quite understand what it means that the "POV switch was on in default setting"?
Still dealing with the same problem... I have no clue what makes the control goes in to "Joy1_POV 1_0" when my control is plugged in. No matter what keys I press on my computers tastature, I get this "Joy1_POV 1_0". When I doubleclick on the select control function in shipsim, it goes straight into "Joy1_POV 1_0"
The only code I am using is as follows;
------------------------------------------------------------------------------------------------------------------
void setup() {
pinMode(10, INPUT_PULLUP);
pinMode(11, INPUT_PULLUP);
}
void loop() {
Joystick.X(analogRead(10));
Joystick.Y(analogRead(11));
delay(50);
}
-----------------------------------------------------------------------------------------------------------------
As you see, I am only using analogs, therefor I have no clue, I would have guessed that POV was a digital, and not a analog read.
would appreciate it ALOT if you could help me with this, it's made me stay up to late nights.
If possible, and if you got time to help me, could you contact me on mail on this adress
gaugstadstian @ gmail.com
this is the link i used to make my controller with Arduino Leonardo
My modified code for arduino
/*
Arduino Leonardo Joystick!
const int xAxis = A0; // joystick X axis
const int yAxis = A1;
const int zAxis = A2; // joystick X axis
const int xrotAxis = A3;
const int yrotAxis = A4; // joystick X axis
const int wheelAxis = A5;
const int xAxis = A0; // joystick X axis
*/
JoyState_t joySt;
void setup()
{
pinMode(13, OUTPUT);
//joySt.xAxis = 0;
//joySt.yAxis = 0;
//joySt.zAxis = 0;
//joySt.xRotAxis = 0;
//joySt.yRotAxis = 0;
//joySt.zRotAxis = 0;
//joySt.throttle = 0;
//joySt.rudder = 0;
joySt.hatSw1 = 8; //pole valitud asend?
joySt.hatSw2 = 8; //pole valitud asend?
//joySt.buttons = 0;
}
void loop()
{
joySt.xAxis = readAxis(A0);
joySt.yAxis = readAxis(A1);
joySt.zAxis = readAxis(A2);
joySt.xRotAxis = readAxis(A3);
joySt.yRotAxis = readAxis(A4);
//joySt.zRotAxis = readAxis(A5); // ei tqqta
//joySt.throttle = random(255);
joySt.rudder = readAxis(A5);
// Call Joystick.move
Joystick.setState(&joySt);
}
int readAxis(int thisAxis) {
// read the analog input:
int reading = analogRead(thisAxis);
// map the reading from the analog input range to the output range:
reading = map(reading, 0, 1023, 0, 255);
return reading;
}
*************************
joySt.xAxis = readAxis(A0);
joySt.yAxis = readAxis(A1);
joySt.zAxis = readAxis(A2);
joySt.xRotAxis = readAxis(A3);
joySt.yRotAxis = readAxis(A4);
joySt.rudder = readAxis(A5);
these are 6 inputs that i used (2 rudder, 2 throttle, 2 thruster)