<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Mark -a big thanks for pointing out the errors! v & t in the Callenge2.pdf are typing errors. I should have included the actual output screen (see attachment) with the other files. I've blacked out  the answer to Output #11.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Things have been quiet on project talk re: challenge 2. Could these errors be the reason? </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I don't have a read on what I should do for output #10. Should I provide the solution to the quadratic equation?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Jim</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 11, 2020 at 5:09 PM Mark G. <<a href="mailto:vpm@palaceofretention.ca">vpm@palaceofretention.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jim,<br>
<br>
I've completed up-to output #8 of the challenge and have<br>
some discrepancies with your challenge specification.<br>
Specifically, velocity/acceleration error switch, differing<br>
values for uncorrected time (t) and velocity (v).<br>
<br>
Your values:<br>
Input Data: 33009,9002,11 (initial values - RegP, RegM, RegS)<br>
Output #1: 241 (value of p, transferred from RegP)<br>
Output #2: 186 (value of v, transferred from RegM)<br>
Output #3: 10 (value of a, transferred from RegM)<br>
Output #4: 220 (value of t, transferred RegM) <br>
-------------------------------------------------------------------------------- <br>
Output # 5 to #8 – values of p, v, a, and t with corrections <br>
-------------------------------------------------------------------------------- <br>
Output #5: 240 (p)<br>
Output #6: 35 (v)<br>
Output #7: 10 (a)<br>
Output #8: 9 (t)<br>
<br>
My values:<br>
<br>
$ echo  33009 9002 11 | ../bin/cnc<br>
Input:<br>
RegP: 33009      bits: 1000000011110001<br>
RegM: 9002       bits: 0010001100101010<br>
RegS: 11         bits: 00001011<br>
Output #1: 241   (position)      bits: 11110001<br>
Output #2: 35    (velocity)      bits: 00100011<br>
Output #3: 2     (accel.)        bits: 00000010<br>
Output #4: 10    (time)          bits: 00001010<br>
Position error.<br>
Velocity ok.<br>
Acceleration error.<br>
Time error.<br>
Error corrected:<br>
Output #5: 240   (position)      bits: 11110000<br>
Output #6: 35    (velocity)      bits: 00100011<br>
Output #7: 10    (accel.)        bits: 00001010<br>
Output #8: 9     (time)          bits: 00001001<br>
Position ok.<br>
Velocity ok.<br>
Acceleration ok.<br>
Time ok.<br>
<br>
What do you think?<br>
<br>
Mark<br>
<br>
-- <br>
Projects mailing list<br>
<a href="mailto:Projects@vicpimakers.ca" target="_blank">Projects@vicpimakers.ca</a><br>
<a href="http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca" rel="noreferrer" target="_blank">http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca</a><br>
</blockquote></div>