![]() |
OI LEDs
Hi, team 1153 has been trying to get our OI LEDs, Pwm1_green, Pwm1_red, Relay1_green etc., to work when a button is pressed.
We have tried many various solutions but the only lights we could get to work properly in Manual mode was the Switch LEDS. The only light we get on in Manual is Pwm1_green and whenever the aux1 button is pressed on the Port 1 joystick will it change and it changes in a type of bianary going from green to red to green and red to pwm2_green and etc in that order. We have a feeling that the code causing the OI to work under that system is interferring with our code but we couldn't find it anywhere in the code. If you could please help us get the Red LEDs to work, it would be greatly appreciated. Here is our code in question if it will help: Code:
if (p4_sw_trig == 1) {ElevW= 0; DesiredHeight= 0; } //Lowest |
Re: OI LEDs
From IFI docs on the software/OI
Quote:
Also, the LED byte in the txdata packet is shared: Code:
|
Re: OI LEDs
Thank you very much for your help. We had User_Mode_byte set to our autonomous selector to show which autonomous code we were running. It seems odd that we can only do lights or user number. Do you know of any way to display the lights and the user number on the OI display?
|
Re: OI LEDs
when you use the LED control pins in port 1 and 3....
a 1 is off and a 0 is on for the external led the pins are "ground" you will need to wire up a power and get some resistors on it as well |
Re: OI LEDs
Quote:
For example: Code:
ifi_aliases.h:311: #define user_display_mode rxdata.rc_mode_byte.mode.user_display |
| All times are GMT -5. The time now is 00:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi