Results 31 to 37 of 37
Thread: SIOC and Offset 023A
-
04-20-2012, 02:51 PM #31
Re: SIOC and Offset 023A
Hi Jack
Both your sioc.ini and script works at my end after adapting to my USB numbering.
I have only the Pot connected though and Var 3 is working nicely while turning the pot.
In Sioc monitor all A/D inputs changes if just one pot is connected.
The same seems to happen in SIOC as well - One pot connected, use any Input #.
In your script the motor will spin all the time - what kind of pot do you have? Multiturn?
And remember with your "PosL 97, PosC 133, PosR 170" you'll see
Var 3 change in just a small area.
I suggest you test just the pot (without motor) like David said.
-
04-20-2012, 09:09 PM #32
Re: SIOC and Offset 023A
Alright. So I expanded the Pots "range" to 0 to 250 instead of 97 to 170.
SIOC's version of Input #2 is actually some random Pot stuck on value 247. Yet, in SIOC Monitor, Pot 2 is my glideslope Pot, which smoothly changes values when the motor moves.
So the problem is, "input 2" on monitor does not appear to be the same "input 2" in SIOC... Or so it seems.
Jack
-
04-21-2012, 04:05 AM #33
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Have you tried connecting the pot to other inputs?
What type is the pot?
Try removing the device argument
David
-
04-21-2012, 10:33 AM #34
Re: SIOC and Offset 023A
Hi David,
Ok, so I tried something totally outrageous and it worked.
In SIOC.ini, I called the USBDCMotors Card "Device 6" instead of "Device 0" (for now reason).
After referring to "Device 6" in the SIOC file; everythhing *appears* to work correctly! Interestingly however, the pot ranges from 0 to 255, not 97 to 173.
Cheers,
Jack
-
04-21-2012, 11:53 AM #35
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Jack
Outrageous and illogical actions sometimes pay dividends The real problem now is to find out why it worked!
David
-
04-21-2012, 01:51 PM #36
Re: SIOC and Offset 023A
Jack
I think I know why you see this. In the sioc.ini you two devices
both having USBAnalogic features - USBDCmotor and USBservos
Both are set to device index 0.
No problems as long as you use the main features (motor and servo)
but as soon as you start using pot's, you'll have trouble.
USBServo seems to take precedence over USBDCmotor pot's
and device index numbering. I don't know why but as usually
SIOC doc is pure crap in some area
From your sioc.ini:
[USBDCMOTORS]
USBDCmotor=0,131
[USBDCMOTORSPOTS]
USBAnalogic=0,131
[USBSERVOS]
USBSERVOS=0,4
Try to either disconnect your USBServo board
or change the index to 1 and see what you get.
PS. I don't have USBServo connected at the moment so not able to test.
-
04-21-2012, 01:59 PM #37
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Offset 023A
Per-Erik
Of course, well done. I am shortly to programme my servo and dc motors cards for the throttle and was wondering how to differentiate the analogue inputs. Your suggestion sounds spot on
David
Search Pretty Girls in your city for night
HDG preselect function