Comments (5)
@rcp1 Out of interest, I was hacking around with a gamepad addon for CNCjs as well. Was working generally okay, but had a troublesome memory leak on the Pi that I never got to the bottom of..
I've just stuck my code up on github in case it's helpful to you - https://github.com/dresco/cncjs-pendant-gamecontroller
from imxrt1062.
... send a lot of $J=G91G21X-3.3Y0.0Z0.0F1000.00 jog commands to grblHal
Avoid this, send a single long distance jog command on key down and jog cancel on key up if possible.
It may be a stupid question, but is it expected that a full buffer leads to becoming unresponsive?
It should not - is it a bug in my code or the Teensy USB code? Can you try with setting USB_SERIAL_CDC
to 1 in my_machine.h and reflash?
Is it the task of the sender to stop sending in sight of a full buffer?
Yes! It is potentially dangerous to overflow the buffer as overflowing characters are lost.
from imxrt1062.
Okay, so in general this is already an edge case since the sender does / I do not care about the buffer.
And yes, I've just tested with USB_SERIAL_CDC as 1 and it happens, too.
[VER:1.1f.20211010:]
[OPT:VNMZSL,35,1024,3,0]
[NEWOPT:ENUMS,RT+,HOME,ES,EXPR,TC,SED]
[FIRMWARE:grblHAL]
[NVS STORAGE:*FLASH]
[DRIVER:iMXRT1062]
[DRIVER VERSION:210930]
[DRIVER OPTIONS:USB.1]
[BOARD:T41U5XBB]
[AUX IO:4,3,0,0]
from imxrt1062.
@rcp1 Out of interest, I was hacking around with a gamepad addon for CNCjs as well. Was working generally okay, but had a troublesome memory leak on the Pi that I never got to the bottom of..
I've just stuck my code up on github in case it's helpful to you - https://github.com/dresco/cncjs-pendant-gamecontroller
@dresco Nice, you actually check for the acknowledge of grbl... I will probably copy that part... (see cncjs-pendant-gamepad for my current version)
from imxrt1062.
A pity that the Teensy is not debuggable otherwise I might be tempted to try to replicate this and find out where it hangs. But since it hangs when stressing the system beyond what I regard is safe (and is designed for) I will give it a pass for now.
What might be of interest to you is that I have modified they keypad plugin slightly so that input from a serial port or HID device can be used instead of a I2C keypad. The plugin decodes single character commands for many different functions including jogging. There are support for three different jog modes: fast, slow and step. Jog moves are terminated by sending a standard jog cancel command (on key up events).
A serial port interface will be the easiest to get working as many drivers has support for more than one port. A HID device will be more work and only a few drivers supports host mode(?). The Pro board by @phil-barrett has a connector for a second USB port so this could be used, it would be great if somebody could add host mode support for gamepads to that....
from imxrt1062.
Related Issues (20)
- Properly compile firmware for a dual-stepper-Y machine HOT 5
- Teensy crashes with LITTLEFS HOT 6
- Coolant Flood/Mist pins reversed HOT 2
- Compile errors with latest code. HOT 44
- z-axis TLO and probing report with bCNC HOT 4
- How to input Motor Fault signal? HOT 5
- LATHE Y to Z HOT 2
- BLTouch Servo Probe HOT 5
- RC PWM Spindle control HOT 2
- Question: Why is it an error to use a pin other than 12 or 13 for SPN PWM? HOT 11
- How to add new pins and use them. HOT 17
- I have run the compile both with Arduino IDE and PlatformIO with MCP3221 Enabled. HOT 2
- aggiungere pin alla configurazione HOT 13
- laser co2 + diodo
- valore ottimale planner $398 HOT 4
- COOLANT_MIST_PIN changing from pin 24 to any other available pin breaks communication with board after flashing successfully. HOT 4
- Hello and I have Been Known to Misinterpret Ideas HOT 5
- Using native USB host port as HID input for wireless keyboards HOT 2
- Error in GRBLHAL2000_map.h file HOT 1
- calo improvviso emissione fascio laser / pwm HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imxrt1062.