<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <meta name="generator" content="Movable Type 3.2" />

   <link rel="stylesheet" href="styles-site.css" type="text/css" />
   <link rel="alternate" type="application/atom+xml" title="Atom" href="atom.xml" />
   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="index.xml" />

   <title>Double Down: Motor Steady Check</title>

   <link rel="start" href="" title="Home" />
   <link rel="prev" href="http://doublecounter.com/doubledown/2006_02_main_control.html" title="Project Proposal - Main Control" />
   <link rel="next" href="http://doublecounter.com/doubledown/2006_03_motor_control.html" title="Motor Control" />

   <!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
         xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description
    rdf:about="http://doublecounter.com/doubledown/2006_03_motor_steady_check.html"
    trackback:ping="http://thespork.net/mt-tb.cgi/1086"
    dc:title="Motor Steady Check"
    dc:identifier="http://doublecounter.com/doubledown/2006_03_motor_steady_check.html"
    dc:subject="5 - Computation"
    dc:description=" The motor steady check would output a true signal if the motor was within a certain error tolerance (set by a constant) for the last half second (also changeable by a constant). It would use an incremental counter multiplied..."
    dc:creator="John"
    dc:date="2006-03-13T08:43:54-06:00" />
</rdf:RDF>
-->


   

   <script type="text/javascript" src="http://doublecounter.com/doubledown/mt-site.js"></script>
</head>
<body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
   <div id="container">
      <div id="container-inner" class="pkg">

         <div id="banner">
            <div id="banner-inner" class="pkg">
               <h1 id="banner-header"><a href="index.html" accesskey="1">Double Down</a></h1>
               <h2 id="banner-description">An automated card-dealer</h2>
            </div>
         </div>

         <div id="pagebody">
            <div id="pagebody-inner" class="pkg">
               <div id="alpha">
                  <div id="alpha-inner" class="pkg">

                     <p class="content-nav">
                        <a href="http://doublecounter.com/doubledown/2006_02_main_control.html">&laquo; Project Proposal - Main Control</a> |
                        <a href="index.html">Main</a>
                        | <a href="http://doublecounter.com/doubledown/2006_03_motor_control.html">Motor Control &raquo;</a>
                     </p>

                     <a id="a001086"></a>
                     <div class="entry" id="entry-1086">
                        <h3 class="entry-header">Motor Steady Check</h3>
                        <div class="entry-content">
                           <div class="entry-body">
                              <p><a href="simu_motor_steady.html" onclick="window.open('simu_motor_steady.html','popup','width=838,height=379,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img alt="simu_motor_steady.gif" src="simu_motor_steady.gif" width="420" height="190" /></a></p>

<p>The motor steady check would output a true signal if the motor was within a certain error tolerance (set by a constant) for the last half second (also changeable by a constant).  It would use an incremental counter multiplied by appropriate gains to convert to seconds, but essentially would carry out the following equation:</p>

<p>Counts = (Within_Tolerance*(Not Stable) + Counts)*Within_Tolerance</p>

<p>This way, counts would increment by Within_Tolerance each dt, and since Within_Tolerance only holds zero or one, it would either increment, or become zero, thus multiplying the whole sum by zero and starting over.  Also, but multiplying Within_Tolerance by the opposite of Stable, once the motors did become stable the counter could stop thus preventing overflow.</p>
                           </div>
                           <div id="more" class="entry-more">
                              
                           </div>
                        </div>
                        <p class="entry-footer">
                           <span class="post-footers">Posted by John Hanauer on March 13, 2006 08:43 AM</span> <span class="separator">|</span> <a class="permalink" href="http://doublecounter.com/doubledown/2006_03_motor_steady_check.html">Permalink</a>
                        </p>
                     </div>

                     

                     
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</body>
</html>

