[VicPiMakers Projects] Challenge 2: Confirm preliminary results

George Bowden gtbowdeng at gmail.com
Thu Nov 12 23:59:50 EST 2020


Hi Jim,   You asked why there was little discussion around Challenge 2.
I did challenge 1, and it was fun.  I do appreciate your  effort on
Challenge 2.  I wonder if others found the topic too specific to CNC
applications, and they are not into that specific topic, at that level.
More general programming challenges might get a better response.

On Thu, Nov 12, 2020 at 8:01 PM James Briante <briantej at gmail.com> wrote:

>
>
> 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.
>
> Things have been quiet on project talk re: challenge 2. Could these errors
> be the reason?
>
> I don't have a read on what I should do for output #10. Should I provide
> the solution to the quadratic equation?
>
> Jim
>
>
> On Wed, Nov 11, 2020 at 5:09 PM Mark G. <vpm at palaceofretention.ca> wrote:
>
>> Hi Jim,
>>
>> I've completed up-to output #8 of the challenge and have
>> some discrepancies with your challenge specification.
>> Specifically, velocity/acceleration error switch, differing
>> values for uncorrected time (t) and velocity (v).
>>
>> Your values:
>> Input Data: 33009,9002,11 (initial values - RegP, RegM, RegS)
>> Output #1: 241 (value of p, transferred from RegP)
>> Output #2: 186 (value of v, transferred from RegM)
>> Output #3: 10 (value of a, transferred from RegM)
>> Output #4: 220 (value of t, transferred RegM)
>> --------------------------------------------------------------------------------
>>
>> Output # 5 to #8 – values of p, v, a, and t with corrections
>> --------------------------------------------------------------------------------
>>
>> Output #5: 240 (p)
>> Output #6: 35 (v)
>> Output #7: 10 (a)
>> Output #8: 9 (t)
>>
>> My values:
>>
>> $ echo  33009 9002 11 | ../bin/cnc
>> Input:
>> RegP: 33009      bits: 1000000011110001
>> RegM: 9002       bits: 0010001100101010
>> RegS: 11         bits: 00001011
>> Output #1: 241   (position)      bits: 11110001
>> Output #2: 35    (velocity)      bits: 00100011
>> Output #3: 2     (accel.)        bits: 00000010
>> Output #4: 10    (time)          bits: 00001010
>> Position error.
>> Velocity ok.
>> Acceleration error.
>> Time error.
>> Error corrected:
>> Output #5: 240   (position)      bits: 11110000
>> Output #6: 35    (velocity)      bits: 00100011
>> Output #7: 10    (accel.)        bits: 00001010
>> Output #8: 9     (time)          bits: 00001001
>> Position ok.
>> Velocity ok.
>> Acceleration ok.
>> Time ok.
>>
>> What do you think?
>>
>> Mark
>>
>> --
>> Projects mailing list
>> Projects at vicpimakers.ca
>> http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca
>>
> --
> Projects mailing list
> Projects at vicpimakers.ca
> http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca
>


-- 
George Bowden, vice president, Victoria Computer Club
gtbowdeng at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vicpimakers.ca/pipermail/projects_vicpimakers.ca/attachments/20201112/301a6751/attachment.htm>


More information about the Projects mailing list