Go to Post The purpose of this forum is for us to communicate our ideas, so that we can collectively strengthen our ability to inspire others. - Jaine Perotti [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 04-10-2012, 12:45 PM
Batman Batman is offline
Registered User
AKA: Evan Wiederspan
FRC #3663 (CPR)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Bothell, WA
Posts: 4
Batman is an unknown quantity at this point
SetSafetyEnabled() and SetExpiration()

During the beginning of the season, our robot had about a quarter to a half second of lag, which I thought was just caused by a bad wireless connection. Then I noticed that all of the motors in the code (there are about 7) were set as follows:

motor1->SetSafetyEnabled(true);
motor1->SetExpiration(0.1);

So just because I had some free time I changed these settings on all the motors to the following:

motor1->SetSafetyEnabled(false);
motor1->SetExpiration(0.5);

When I did this, the robot started to run without any lag at all. What exactly do these functions do, and does anyone have any idea on how they would cause lag with the previous settings?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:23 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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