On Mon, Dec 29, 2008 at 9:27 PM, Chris Radek <[email protected]> wrote: > On Mon, Dec 29, 2008 at 11:04:52AM -0600, Stuart Stevenson wrote: >> >> i would say that is the problem - I expected something such as this >> just didn't know what - I will work on it >> >> the return of cos is not radians but atan2 is? > > cos takes an angle in radians and returns its cosine. The return > value of cos is neither radians nor degrees because it's not an angle > at all. >
thanks - right after I sent this I realized the difference - too bad there is not an email retrieve button :) > In standard math calls like cos, acos, atan2, all values passed in > or returned (that are angles) are in radians. > > The only time you have to deal with degrees is joint or axis positions > from/to EMC. They are degrees because gcode is degrees, I guess. > > > On Mon, Dec 29, 2008 at 02:10:57PM -0600, Stuart Stevenson wrote: >> Gentlemen, >> ugh - removing the divides is more involved than I thought - I have >> some done - will work on more later > > You don't need to remove divides; you only need to make sure you won't > ever divide by zero. Also avoid sqrt(negative), log(negative), etc > etc. when looking at this I think the only place I used divide was in places that would see a divide by zero > >> I am going to get my 12 year old grandson to spend a couple days here. >> We will be working on a robot kit. > > That sounds like a lot more fun to me! > > > ------------------------------------------------------------------------------ > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
