![]() |
Sending data from RC to OI
We'd like to have an LED on our control panel light up if the robot's in a certain state.
Is it possible to send data from the Robot Controller and have it received at the Operator Interface? Thanks, Nathan |
Re: Sending data from RC to OI
There are a couple of ways you could do that. First the dashboard port on the side can provide feedback if you are planning on using an external light or something like that. They have the dashboard viewer application that works with that. You would have to look into it a bit more but it could work. If you are using the default code there are a bunch of things on the bottom of user_routines.c that define all of the user lights that are on the OI on the right had side.
|
Re: Sending data from RC to OI
This code is from the IFI code.
Code:
if(user_display_mode == 0) |
Re: Sending data from RC to OI
If you look on Page 7 and 9 of OI Ref Guide . You can see the pins for the LEDs. Those LEDs coordinate to the code at the bottom of user_routines.c so you will want to modify that.
|
Re: Sending data from RC to OI
Now are the examples above for the LEDs on the OI? We wanted to have an external LED that's a couple feet away from the OI controller.
So how do you send stuff to the dashboard port, if that's what we need to do? Thanks, Nathan |
Re: Sending data from RC to OI
Yes the example in the default code if for the LEDson the far right side of the OI.The dashboard port is output only. It automatically sends back data at high speeds. Each packet of info is 26 bytes, and is outlined on a datasheet that is included in a zip of the program here: http://ifirobotics.com/dashboard_viewer.shtml In it there are a couple of different things like "USER_BYTE1" or something like that. You can set those in your code I think its just
Code:
user_byte1 = x; |
Re: Sending data from RC to OI
Quote:
|
Re: Sending data from RC to OI
Awesome! Thanks guys!!
|
| All times are GMT -5. The time now is 09:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi