Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   CAN (http://www.chiefdelphi.com/forums/forumdisplay.php?f=185)
-   -   Legality of Jaguar closed-loop control modes (http://www.chiefdelphi.com/forums/showthread.php?t=89312)

rrossbach 16-01-2011 22:30

Legality of Jaguar closed-loop control modes
 
In an official Q&A answer just posted today, it appears that the Jaguar closed-loop control modes are now not considered competition-legal (see the specific question and answer from the GDC here.)

We're interpreting this to mean that ONLY voltage mode is competition-legal - which is surprising, as we'd previously understood that the essential safety feature of the FMS being able to disable Jaguar-controlled motors was achieved via the special heartbeat sent from FRC_NetworkCommunication, and thus completely protected from any team-written software going awry. Hence the reason for the FRC-specific firmware on the Jags - if the Jag doesn't see the FRC-specific heartbeat, it cuts off the motor output regardless of whether a closed-loop control in the Jag is trying to drive it or not.

Due to the implications of this, we'd like to see if others in the community read this Q&A the same way we have, before we ask GDC for explicit confirmation. Please post your thoughts.

- Ron
Team #2607 controls mentor

aldaeron 16-01-2011 22:40

Re: Legality of Jaguar closed-loop control modes
 
I would post to Q&A before Tuesday so you can get an answer and continue working on your design. It is good to get advice from other folks, but the Q&A ruling is final.

Joe Ross 16-01-2011 22:48

Re: Legality of Jaguar closed-loop control modes
 
I thought that was an ambiguous way to answer the question. Is the closed loop control command that does originate from the cRIO the command, or is the calculated voltage output the command? I find it hard to believe that they would make it illegal without outright stating it, so clarification is in order.

drakesword 16-01-2011 23:26

Re: Legality of Jaguar closed-loop control modes
 
My interpretation is that you can send the closed loop commands from the cRio.

A Jag may not send closed loop commands to another jag.

rrossbach 16-01-2011 23:36

Re: Legality of Jaguar closed-loop control modes
 
We've posted a Q&A requesting explicit statement of which control modes are competition-legal.

- Ron
Team #2607 controls mentor

jhersh 17-01-2011 00:30

Re: Legality of Jaguar closed-loop control modes
 
The way I see it, the intent of these rules is to keep robots safe. Based on the technology, the cRIO needs to control the Jags so that the Field Management System can stop the robots. That is the point of the FIRST specific Jaguar firmware. All modes are safe and controlled by the FMS.

I expect the GDC will state that all modes are legal.

-Joe

rrossbach 17-01-2011 01:10

Re: Legality of Jaguar closed-loop control modes
 
Quote:

Originally Posted by jhersh (Post 1001628)
The way I see it, the intent of these rules is to keep robots safe. Based on the technology, the cRIO needs to control the Jags so that the Field Management System can stop the robots. That is the point of the FIRST specific Jaguar firmware. All modes are safe and controlled by the FMS.

I expect the GDC will state that all modes are legal.

-Joe

Yep, that's the way we see it too - hopefully the GDC will confirm that understanding.

EricVanWyk 17-01-2011 01:29

Re: Legality of Jaguar closed-loop control modes
 
Quote:

There is no rule that prohibits the Jaguars from reading the values from the encoders, however note that Rule R49 requires that the ROBOT must be controlled by the cRIO. In other words, commands may not originate in the Jaguar or any other controller, they must originate in the cRIO.
The commands for the various control moods do originate in the cRIO, it is just that the command is "Set your speed according to these parameters and the encoder".

The key word is command, not data.

Ether 17-01-2011 08:21

Re: Legality of Jaguar closed-loop control modes
 
Quote:

Originally Posted by EricVanWyk (Post 1001685)
The commands for the various control moods do originate in the cRIO, it is just that the command is "Set your speed according to these parameters and the encoder".

The key word is command, not data.

I believe you are right, but then why did GDC find it necessary to say "commands may not originate in the Jaguar" ? In what meaningful sense would this even be possible?




Al Skierkiewicz 17-01-2011 08:42

Re: Legality of Jaguar closed-loop control modes
 
Ron,
I was under the impression that the heartbeat is to insure that something has not interrupted the CAN connection and therefore allow the Jaguar to continue to execute the last command received. This is something different than a disable command generated by the Crio either through internal firmware for a fault or as received from the FMS. Is this correct?

EricVanWyk 17-01-2011 09:51

Re: Legality of Jaguar closed-loop control modes
 
Quote:

Originally Posted by Ether (Post 1001768)
I believe you are right, but then why did GDC find it necessary to say "commands may not originate in the Jaguar" ? In what meaningful sense would this even be possible?



I think that half of the response is unrelated. I don't know why they bothered to type it.

A "bad" student could reprogram the Jaguars with entirely new firmware, but this would break several other rules. There would be no doubt that they were doing something illegal though, so I don't know why they bothered to mention it here.

rrossbach 17-01-2011 12:12

Re: Legality of Jaguar closed-loop control modes
 
Quote:

Originally Posted by Al Skierkiewicz (Post 1001782)
Ron,
I was under the impression that the heartbeat is to insure that something has not interrupted the CAN connection and therefore allow the Jaguar to continue to execute the last command received. This is something different than a disable command generated by the Crio either through internal firmware for a fault or as received from the FMS. Is this correct?

I'd have to let jhersh and/or dyanoshak provide the authoritative answer....but IIRC when the robot is disabled the cRIO stops sending out the FRC "trusted heartbeat" to the Jags, which causes the FRC-specific firmware on the Jag to disable the motor output - not unlike what the standard Jag firmware does when it doesn't see any CAN messages.

Since this "trusted heartbeat" is completely protected from interference - intentional or unintentional - from team software, it's this handshake between the protected FRC software on the cRIO and the FRC-specific firmware on the Jags that provides the required safety, allowing the driver station (or FMS when connected) to disable the Jag motor output, effectively negating any motor output "commands" that come from the team software on the cRIO or the internal control loops on the Jag. That's why the Jags require the special firmware when using CAN in order to be competition-legal.

Quote:

Originally Posted by EricVanWyk (Post 1001824)
Quote:

Originally Posted by Ether (Post 1001768)
I believe you are right, but then why did GDC find it necessary to say "commands may not originate in the Jaguar" ? In what meaningful sense would this even be possible?

I think that half of the response is unrelated. I don't know why they bothered to type it.

I see the ambiguity as coming from the terms "reading the values", "command" and "control". Even ignoring the second part of the response, the first sentence is also unclear IMHO.

To quote, adding my own emphasis:
"There is no rule that prohibits the Jaguars from reading the values from the encoders, however note that Rule R49 requires that the ROBOT must be controlled by the cRIO."

Here's a very plausible paraphrase (which is hopefully NOT what the GDC intends):

"There is no rule that prohibits the Jaguars from reading the values from the encoders, however the Jaguars are only permitted to provide the values to the cRIO and all control calculations must be performed on the cRIO."

Seems like we all agree it'd be non-sensical for the GDC to intend this - but it's unclear enough that we had visions of robots being wrongly declared illegal based on different inspectors' opinions. :eek:

Stuart 17-01-2011 13:58

Re: Legality of Jaguar closed-loop control modes
 
ok so if we interpret this the strictest way possible ( where the jag cant independently make a decision about its output ) wouldn't the current/voltage protection( a jag will shut itself off if it over amps or the voltage gets under 6v) built in to the Jags break this rule?

I dont think that this interpretation is correct ( or will remain correct ).

biojae 20-01-2011 22:13

Re: Legality of Jaguar closed-loop control modes
 
The GDC has spoken, no closed loop control from the jaguar.
http://forums.usfirst.org/showthread.php?t=16326
Quote:

Originally Posted by FRC GDC
No closed-loop control modes are permitted within the Jaguar per <R62>.


taichichuan 20-01-2011 23:50

Re: Legality of Jaguar closed-loop control modes
 
Quote:

Originally Posted by biojae (Post 1004695)
The GDC has spoken, no closed loop control from the jaguar.
http://forums.usfirst.org/showthread.php?t=16326

Geez. This is a really unfortunate answer from the GDC. :ahh: It greatly complicates the cabling and increases the complexity of closed-loop control.

Can someone ask on the First forum (it won't let me post) if this means that speed, current and position modes of the Jaguar are prohibited? If so, then there's no reason to use CAN bus. We might as well stay with PWM and the Victors.

Heavy sigh...


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

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