![]() |
PBASIC operator interface LED problems
on the operator interface there are the LEDs for the pwm's and the relay's, they al work but just not how they are supposed to, i loaded up the basic code and from what i understand for pwm 1 when the joystick is all they way forward the green LED should be on and when the joystick is all the way back the red LED should be on, and when the joystick is centered both should be on, and the same with the pwm2 and its corrosponding joystcik, but this doesn't happen the LEDs all just randomly blink
|
Re: PBASIC operator interface LED problems
Your joysticks are plugged into OI ports 1 & 2?
Your joystick may not be giving you full range and falling into the ranges set in the default code for the OI LEDs. You can try expanding the ranges to be any forward and any reverse value rather than only the top/bottom of the normal range. You might also like to increase the range where both lights are on. This is the way the default code is now for OI Port 1: Code:
select (p1_y) 'Check position of Port 1 JoystickTry changing the ranges to: Code:
select (p1_y) 'Check position of Port 1 JoystickDo the same for OI Port 2. |
| All times are GMT -5. The time now is 04:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi