Search found 12 matches

by Diverjim
Sun Feb 24, 2019 8:53 pm
Forum: General Topics
Topic: Strategy Recommendation
Replies: 5
Views: 2710

Re: Strategy Recommendation

Not target the ROI? Sorry, not sure what this means.


Here is a sample image from our practice field. so the colors aren't accurate due to the lack of paint.
Screen Shot 2019-02-24 at 7.50.24 PM.png
by Diverjim
Sun Feb 24, 2019 3:40 pm
Forum: General Topics
Topic: Strategy Recommendation
Replies: 5
Views: 2710

Strategy Recommendation

I'm trying to figure out how to make our robot center up on the white lines in the attached pic. I originally wanted to use the Linear Regression algorithm, however, the white on the rocket makes the output unusable. This is my first real attempt at modern vision processing. Screen Shot 2019-02-24 a...
by Diverjim
Sat Feb 09, 2019 3:23 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

I just sent you an email with my info. Thank you so much for all your support and sponsorship of our High School Robotics Team.

We will fall back to UART until we receive the CAN shields. Maybe we will get lucky and UART will be fast enough.

Thanks So much. WE ARE VERY GRATEFUL!!!

Jim
by Diverjim
Sat Feb 09, 2019 2:46 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

a transaction is 20 bytes. We would like to have a transaction every 15ms. What should I be doing in my ISR to do this properly? I've got SPI working I think, but now we are not getting the main loop body to run in time. We have to read SPI from master 6 times to see a change in data from our main l...
by Diverjim
Wed Feb 06, 2019 9:40 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

Is it a safe assumption that this happens if you do not disable the interrupts because the interrupts are disabled while SPI is doing a transaction?
by Diverjim
Mon Feb 04, 2019 2:39 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

I wish we could make the Rio a slave. If I knew more on how the SPI driver worked, this probably would have been a lot easier. So far, what I've learned is that if you are not bit banging your CS line and using built in hardware, you don't want to use your while(high) pass; spi transaction; while( l...
by Diverjim
Sun Feb 03, 2019 10:45 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

Yes we are the FRC team that you donated 2 boards to. CAN would also be amazing. Do you have a FRC library for it? I think I got SPI working by removing the while loops in your example and only reading the 24 bytes. However, that is all I can do in the scrip if I want to read the "Hello World" messa...
by Diverjim
Sun Feb 03, 2019 4:02 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

So I've made progress. But something is screwed up. If I read more than my buffer contains, it seems to really screw up the M7 camera. I rarely can get the message. I've gone back to only trying to pull the 24 bytes, and that plus removing the while loops in your example and rapping the try/catch in...
by Diverjim
Sun Feb 03, 2019 3:03 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

I'm really sorry if you felt like I was abusing your time. I appreciate the help. I didn't intend for you to try to run the file. We aren't using Arduino. We are using a Linux based system from National Instruments called a RoboRio (Rio for short). If we were using Arduino, your example with the mas...
by Diverjim
Sat Feb 02, 2019 3:40 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

With the SPI wires disconnected, it does nothing except say "Waiting for Arduino". Here is the code, we have modified it a little to debug. Trying to look at our buffer on the master, it just looks like garbage. I started off reading 18 bytes and changed to 25. Got worse. I haven't done SPI in 15yea...
by Diverjim
Sat Feb 02, 2019 2:32 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

Re: USB and SPI at same time?

It's sort of working, I found a power jumper on our board that may have been affecting this. It now randomly disconnects from the IDE and won't reconnect without disconnecting and reconnecting the USB. gnd, CS, clk, MISO, and MOSI are all connected. We are using (in the master code) 1MHz bus speed, ...
by Diverjim
Sat Feb 02, 2019 10:58 am
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 3835

USB and SPI at same time?

I can not connect to the M7 cam while it is connected to our SPI port on our NI RoboRio.

Can these 2 things be used in tandem?

Thanks
Jim

FRC 3959 SW Mentor

Go to advanced search