Back
[03:49:44] <cradek> dang
[03:49:56] <cradek> I found a worse bug when looking for my css+m4 bug
[03:50:02] <cradek> if(fabs(speed) > fabs(emcmotStatus->spindle.speed)) speed = emcmotStatus->spindle.speed;
[03:50:10] <cradek> speed is the calculated css speed
[03:50:18] <cradek> emcmotStatus->spindle.speed is the max spindle speed
[03:50:43] <cradek> this is the rpm cap
[03:50:56] <cradek> but speed can be negative
[03:56:44] <jmkasunich> this seems like something that is very straightforward
[03:56:52] <cradek> heh
[03:56:59] <cradek> all you have to do is think it through
[03:57:03] <jmkasunich> right
[03:57:09] <cradek> the spindle going backward wasn't part of the original spec :-)
[03:58:17] <jepler> DESCRIPTION
[03:58:17] <jepler> The copysign() functions return a value whose absolute value matches
[03:58:20] <jepler> that of x, but whose sign bit matches that of y. If x is a NaN, then a
[03:58:23] <jepler> NaN with the sign bit of y is returned.
[03:58:50] <jepler> clearly somebody was thinking about negative speeds (witness the fabses) but not thinking hard enough
[03:58:59] <cradek> yeah
[03:59:10] <cradek> I fixed it all, but I'm going to test it anyway
[03:59:42] <jepler> yay and yay
[04:01:49] <cradek> amazing - I got it right on the first try.
[04:05:40] <CIA-1> EMC: 03cradek 07TRUNK * 10emc2/src/emc/motion/control.c: fix #2467781 (M4 + CSS = incorrect spindle command outputs) and also an unreported bug: when in M4 and the CSS rpm gets capped, the spindle reverses and incorrectly goes forward at the capped speed
[04:24:03] <CIA-1> EMC: 03cradek 07v2_2_branch * 10emc2/src/emc/motion/control.c: fix #2467781 (M4 + CSS = incorrect spindle command outputs) and also an unreported bug: when in M4 and the CSS rpm gets capped, the spindle reverses and incorrectly goes forward at the capped speed
[04:26:27] <CIA-1> EMC: 03cradek 07v2_2_branch * 10emc2/debian/changelog: css bugfix
[08:38:46] <KimK> NaN?
[11:32:00] <alex_joni> KimK:
http://www.google.ro/search?q=NaN
[12:58:46] <CIA-1> EMC: 03tissf 07TRUNK * 10emc2/docs/src/Getting_Started_fr.lyx: french translation update
[12:58:48] <CIA-1> EMC: 03tissf 07TRUNK * 10emc2/docs/src/common/ (Getting_EMC_fr.lyx Linux_FAQ_fr.lyx): french translation update
[12:58:48] <CIA-1> EMC: 03tissf 07TRUNK * 10emc2/src/po/ (fr_axis.po fr_rs274_err.po): french translation update
[12:58:57] <CIA-1> EMC: 03tissf 07TRUNK * 10emc2/docs/src/config/stepconf_fr.lyx: french translation update
[12:58:57] <CIA-1> EMC: 03tissf 07TRUNK * 10emc2/docs/src/quickstart/stepper_quickstart_fr.lyx: french translation update
[13:13:01] <CIA-1> EMC: 03tissf 07TRUNK * 10emc2/src/po/fr_rs274_err.po: french translation update