I have been testing devices and pieces of code separately. I combined most things and added all of our devices to the RobotData.ctl. My response time is terrible. On the order of 150-250 ms per iteration of Teleop. That is without the camera running.
I started looking at timing. I build unmodified Basic and Advanced Frameworks. I put in a four stage feedback node to measure the time difference between executions of Teleop, averaged the execution times and plotted the times on a strip chart.
If my measurement technique is correct, in Basic I get an iteration of Teleop every 20 ms. In Advanced, I get an iteration ever 45 ms.
I replaced RobotData.ctl in the Advanced Framework with the one that I had created for my full program and made no other changes to the program. I get an iteration every 140ms. A hundred ms just to have the data available. I suspect that the problem is putting the large typedef into the shift register. It looks like I need to split things up and not put everything into the shift register.
I'd post pictures, but the school network has all photo sites blocked. Graphs of the three modes of operation, the code, and both versions of the .ctl file are included in the attached file.
I'd appreciate any advice in how to split up the typedef. What needs to recirculate and what doesn't?
Thanks


Reply With Quote
