Am 14.08.22 um 14:08 schrieb andy pugh:
On Sun, 14 Aug 2022 at 11:33, <l...@pibf.de> wrote:

2. in src/emc/rs274ngc/gcodemodule.cc which is used for example by AXIS.

There are two parallel interpreters, in effect. One is used to control
the machine, the other to create a graphical preview.

It appears that the way to determine the active plane in gcodemodule.cc is with:

get_attr(canon, "plane", &plane)

Which puts an int into "plane"


I have seen this code in static PyObject *rs274_arc_to_segments(PyObject *self, 
PyObject *args.

But the code in NURBS_FEED(int line_number, std::vector<CONTROL_POINT> 
nurbs_control_points, unsigned int k)

        PyObject *canon;
        int plane;

        get_attr(canon, "plane", &plane);

results in:

emc/rs274ngc/gcodemodule.cc:207:10: warning: ‘canon’ is used uninitialized in 
this function [-Wuninitialized]
  get_attr(canon, "plane", &plane);


How to initialize canon?

Joachim


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to