|
On 06/07/17 22:02, Sag ich Dir nich
wrote:
That is fine for a theoretical figure from an arduino which has nothing to do except output data, data which it has no idea as to whether it will be received or not. On a computer running an operating system, with a realtime pre-emptive scheduling kernel, running an existing realtime application (machinekit), where the receipt of the data is important, things are quite different Look at your servo thread speed and work out how many times the realtime thread polls a second . 1,000,000 / 100,000 ? 10 ? This component is userspace and the kernel priority given to it will not get anywhere near the realtime modules. Add to that, this is not serial, but UART, serial over USB, USB timing being uncertain at best and not guaranteed, which is why it is not used for anything in realtime. I would suggest you increase the baud rate to 115200 and the wait time to .25 seconds and try that. The other option is to check what is sent to see if it has changed from the last packet, if not , either don't send it, or skip over it at the receiving end. That will prevent constantly updating pins which don't need changing, saving processor time and preventing pulsing.
-- 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 [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout. |
- [Machinekit] comp does not seem to compile Sag ich Dir nich
- Re: [Machinekit] comp does not seem to comp... [email protected]
- Re: [Machinekit] comp does not seem to ... Sag ich Dir nich
- Re: [Machinekit] comp does not seem to ... Sag ich Dir nich
- Re: [Machinekit] comp does not seem... [email protected]
- Re: [Machinekit] comp does not ... Sag ich Dir nich
- Re: [Machinekit] comp does... [email protected]
- Re: [Machinekit] comp ... Sag ich Dir nich
- Re: [Machinekit] comp ... Sag ich Dir nich
- Re: [Machinekit] c... [email protected]
- Re: [Machinekit] c... Sag ich Dir nich
- Re: [Machinekit] c... Sag ich Dir nich
- Re: [Machinekit] comp does not seem... [email protected]
- Re: [Machinekit] comp does not ... Sag ich Dir nich
- Re: [Machinekit] comp does... [email protected]
- Re: [Machinekit] comp ... Sag ich Dir nich
