Go to Post just watch out for the evil, robot devouring ghosts - Mr. Pockets [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Spotlight this post!  
Unread 01-30-2016, 12:45 PM
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Re: I2C read from Raspberry Pi to RoboRio

Thanks for all the help so far guys,

Here's what we have so far in terms of UDP programming.

https://github.com/bigbrain890/FlyingToaster2016

UDP transmission does work on the PI end of the programming. We had it sending data over Ethernet to a laptop and the laptop was receiving it with some basic python script. For some reason we can't get the receiving end of the code to work in Java on the robrio. We've got a basic UDP class that should receive data when the getData method is called. Based on just a simple 1 or 0, we should be running our drive chassis forward or backwards in teleop. When we deploy and run the code a couple of weird things happen. First of all, there's no response from the talon srx. It just stays yellow, indicating that it's receiving a value of 0 for drive. Also, any data that we normally write out to the smart dashboard in our teleop section of the Robot.java class ceases to update. Since the runDriver method is called before the SmartDashboard writes out it's value, I wonder if it's getting hung up on the UDP receiving part of the program. We don't get the tell tale error of "Robots don't stop" though, so I'm not inclined to believe that that's the case. Can anyone help us out?

-Cinnamon Toast
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:41 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi