View Single Post
  #15   Spotlight this post!  
Unread 04-03-2014, 09:55
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Java wait Function

Greg,

I haven't done any real testing, but it does not appear that any sort of safety kicks in after 100ms in Java. Our robot definitely moved for more than 100ms with our sleep() calls.

You made me curious, though, so I started poking around. The Jaguar class extends SafePWM, which indeed defaults to disabling safety:

Code:
void initSafePWM() {
    m_safetyHelper = new MotorSafetyHelper(this);
    m_safetyHelper.setExpiration(0.0);
    m_safetyHelper.setSafetyEnabled(false);
}
This sounds rather silly for a class billed as "SafePWM" to me, though it does expose methods for you to enable safety if you wish.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Reply With Quote