These are chat archives for machinekit/machinekit

21st
Jul 2016
zhivko
@zhivko
Jul 21 2016 12:10
Hi guys! Anybody here ?
Regarding issue I had above - it turned out I have some silly mistake, different threads opening context of ZMQ and another sending data to MK instance ... so that fixed it on my side.
Michael Haberler
@mhaberler
Jul 21 2016 12:13
good
zhivko
@zhivko
Jul 21 2016 12:13
I have anothr question - regarding incremental update - I see sometimes there is actual position inside another time there is no such data insid eincremental update. But - I wana read position that is missing...
and in that case I am getting back 0 as value...
what would be prober wa knowing if incremental update contains that value or not? It seems actual positions are initialized to 0 at client side - and then returned as such...
Michael Haberler
@mhaberler
Jul 21 2016 12:15
there are full updates post subscribe and on-change updates thereafter
no change no update
zhivko
@zhivko
Jul 21 2016 12:17
yes OK I undersstand this - but when I get on-change update - how could I know what axis updated...
hmm tricky to explain...
So I get this:
type: MT_EMCSTAT_INCREMENTAL_UPDATE
emc_status_motion {
  active_queue: 0
  actual_position {
    x: -1.8890249633789062
  }
  axis {
    index: 0
    input: -1.8890249633789062
    output: -1.8900000000000032
  }
  distance_to_go: 1.1079999999999997
  dtg {
    x: -1.1079999999999968
  }
  id: 336
  joint_actual_position {
    x: -1.8890249633789062
  }
  joint_position {
    x: -1.8900000000000032
  }
  motion_line: 336
  position {
    x: -1.8920000000000032
  }
}
How I would know I just need to read x actual position and not y and z since y and z will be returned as 0
I could try serializing this and regex it but it seems not good aproach
Michael Haberler
@mhaberler
Jul 21 2016 12:19
i dont understand your question
alex is not using gitter, try the list
zhivko
@zhivko
Jul 21 2016 12:20
I mean it is silly - I thought it must be clever way of doing it ... if defaults for y and z would be NULL than I would know this data was not contained in update data
ok if I receive this data above on client - and I tr reading actual possition of Y - I get 0... Wouldn't it be more proper that I get null sinc eactual_position of Y was not in that package ?
Do I still sound strange - or can you understand what I am trying to say?
OK will try list