Please check the last 15 or so posts in
[Machinekit] Machinekit not starting: seems to be attempting to start incorrect rtapi app
Re: [Machinekit] Re: Problems with installing xhc-hb04 in my Machinekit BBB cnc project

There was a problem, which was fixed yesterday, doing a fresh pull should sort it

On 21/03/17 08:31, fr...@franksworkshop.com.au wrote:
Thanks for the fix, but pulling your fix and the others on master seems to have made things worse.  Now I'm getting lots of Segmentation Faults during the make setuid phase...

(gdb) bt
#0  0xb6e2dba4 in strlen () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0x00011458 in default_flavor () at rtapi/rtapi_compat.c:249
#2  0x00011024 in main (argc=1, argv=0xbee5c7f4) at rtapi/flavor.c:43
(gdb)


The code in rtapi_compat.c seems to be doing a strlen on a NULL pointer.




On Monday, March 20, 2017 at 1:55:38 AM UTC+11, Schooner wrote:
OK I have pushed a PR, which fixes this and adds some enhancements to `time`

When it is merged, time will work as before, but there is also a `zero` pin, which can be used to reset the counter,
either whilst running or when start is set to 0

If you attached it to a momentary switch it would act as a reset.

So now you can start and stop and the count is cumulative, or you can reset at will.

To test run

# !/bin/bash

DEBUG=5 realtime restart
halcmd loadrt time
halcmd newthread servo 1000000 fp
halcmd addf time.0 servo
halcmd start
halcmd setp time.0.start 1
halcmd show pin
sleep 5
halcmd setp time.0.start 0
halcmd show pin
halcmd setp time.0.zero 1
halcmd setp time.0.zero 0
sleep 5
halcmd setp time.0.start 1
halcmd show pin
sleep 5
halcmd show pin
halrun -U

It will show you it counting to 5 secs , then stopping and zeroing, restarting and counting to 5 secs again.

If you want to display time in a pyvcp panel, you could just use the pyvcp_timer widget I wrote ages ago
https://github.com/machinekit/machinekit/blob/master/lib/python/pyvcp_widgets.py#L1040
It just uses system time, rather than the thread period

On 19/03/17 10:33, schoo...@btinternet.com wrote:
There is a problem with the time component, I will let you know when it is sorted
I think the thread functions need updating.

v2 is for atomic operations across cores and of no relevance here


On 19/03/17 09:26, fr...@franksworkshop.com.au wrote:
I've just updated my BBB 3D printer to that latest image and notice my run timer is no longer ticking along.

I'm using the time component.  The pins look correct, and a floating thread is calling the function, but the time is not updating.

I noticed there is a timev2 component with different syntax to access pins.  Is this what I need to use?  When did that change?

Thanks,
Frank
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to