Adding Arcs to GCodeCNCDEMO, Atan3 not recognised

Home Forum Everything Else Adding Arcs to GCodeCNCDEMO, Atan3 not recognised

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6094
    AvatarAnonymous
    Inactive

    Hi.
    I’ve successfully completed my X,Y compound table controlled by GcodeCNCDEMO and am now trying to impliment the ARCS routines to recognise the GCodes G02 amd G03.

    https://www.marginallyclever.com/blog/2014/03/how-to-improve-the-2-axis-cnc-gcode-interpreter-to-understand-arcs/

    However when i compile the code i get an error saying error: ‘atan3’ was not declared in this scope. I guess i’m missing an Library but can’t seem to find whats missing.

    I’m using an ARDUINO UNO (rev3) and ADAFRUIT Motor Shield (Ver2.3)

    The Includes i have are:
    #if MOTOR_SHIELD_VERSION == 2

    #include
    #include
    #include “utility/Adafruit_PWMServoDriver.h”

    #endif

    Any help appreciated.

    Ray.

    #7001
    AvatarAnonymous
    Inactive

    Oops, problem solved.
    After looking at the Makelangeo code ‘firmware_ams’ i realised i had:

    // returns angle of dy/dx as a value from 0…2PI
    static float atan3(float dy,float dx) {
    float a=atan2(dy,dx);
    if(a<0) a=(PI*2.0)+a;
    return a;
    }

    missing.
    Back to testing.
    Ray.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.