Thread: CRIO-FRCIII
View Single Post
  #44   Spotlight this post!  
Unread 27-03-2014, 15:21
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: CRIO-FRCIII

Quote:
Originally Posted by fb39ca4 View Post
Being able to use H.264 instead of motion JPEG would help that a lot, but our team has not figured out how to get that working with the Axis camera.
Depending on the camera you are using there will be an H.264 stream link that can be enabled via the web interface. If you use a USB camera next year, there are a number of h.264 compatible USB cameras that have linux drivers. Ultimately it depends on what processing library you use for H.264 to be useful to you. Lowering your image resolution will also reduce bandwidth over the FMS network.

Quote:
Originally Posted by yash101 View Post
Hopefully it supports some sort of MJPEG because I don't know for sure if OpenCV supports H. 264. Hopefully they can bump up the bandwidth to at least 16Mbps next year because that will reduce lag by a lot.
Open CV does support H.264, you need to compile ffmpeg with H.264 encoding support. Directions for adding h.264 support to ffmpeg can be found on the ffmpeg website.


Quote:
Originally Posted by yash101 View Post
What type of Linux does the new cRIO run? Is it completely based off NI or is it based off an Operating System like Debian?
The RoboRio (which is what I assume you mean by cRIO) runs a custom made linux distro. The difference is that the OS on the Robo RIO is a Real-time operating system with hard time slicing for deterministic results. More information of NI Linux Real-time can be found on the NI website. I am not sure it is correct to say that it is based off one type of linux or another. What I can say truthfully is that it is a linux real-time operating system with a full linux shell and provides opkg for package management. NI can elaborate more on the development of the OS.

Quote:
Originally Posted by yash101 View Post
Another funny question that I have is that I am wondering if it would be possible for the cRIO to compile code on itself? That would be a nice finishing touch. My vision coprocessor checks code differences and compiles the code on bootup

Yes this is possible as long as you choose to shell into the device and have a compiler installed. But it will be extrmely slow when compared to a desktop or laptop. Speed in compliation, and using a full up IDE (not over x window) is usually the reason for cross-compilation which is what the WPILib Plugins do. They allow you to develop, build, and compile code on your windows machine for an Arm based target and transfer the resulting binary over to the RoboRio. Remember the RoboRio is running a dual-core are at 667Hz and limited memory, compared to the gigaHz of your laptop/pc with gigs of ram, really is no comparison.
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 27-03-2014 at 18:11.