QtDragon bug?

  • faeluke
  • faeluke's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
05 Mar 2024 15:23 #295236 by faeluke
QtDragon bug? was created by faeluke
The location of the tool setter uses metric coordinates even though the machine is in inches

## Here are the steps I follow to reproduce the issue:
1. Start Linux Cnc
2. Enable the machine
3. Home the machine
4. Click on the "Offsets" tab
5. Click on "Go to Sensor"
## This is what I expected to happen:
The machine should move to Tool Sensor at X=5.05, Y=105.25
## This is what happened instead:
The machine moves to coordinates (approximate) X =0.196, Y=4.144
## Observations and corrective actions:
Manually changing the values on the screen to X=5.05 x 25.4 and Y = 105.25 *25.4 and the machine moved to the correct position
## It worked properly before this:
N/A
## Information about my hardware and software:
* The machine needs to be in Inches to reproduce the problem

* I am using this Linux distribution and version (often, shown by `lsb_release -a`): Mint-Cinnamon Debian 12 BookWorm
* I am using this kernel version (shown by `uname -a`): preempt-rt
* I am running A binary version from linuxcnc.org
* I am using LinuxCNC version 2.9.2
Install was accomplished using the instructions here linuxcnc.org/docs/2.9/html/getting-start...etting-linuxcnc.html
* I am using the qtDragon/Versaprobe user interface 
* I am using Mesa interface hardware 

I know it is requested to provide system setup files. If the problem can not be reproduced, I will gladly provide them.

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
05 Mar 2024 18:44 #295246 by rodw
Replied by rodw on topic QtDragon bug?
If the machine units are in inches, how do you expect it to know you want to move in metric units?
How do you tell the mechine to use metric units with your toolsetter?
Surely the correct approach is to change your offsets to be in imperial units
I don't think this is a bug.

Please Log in or Create an account to join the conversation.

  • faeluke
  • faeluke's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
05 Mar 2024 19:11 #295248 by faeluke
Replied by faeluke on topic QtDragon bug?
Sorry to be confusing, but the machine is using my values that are in inches as if they are metric values.

I provided 5 inches, the machine moved (5/ 25.4) = .198"
I provided 105 inches and the machine moved (105/254) = 4.144"

I had to type rather large values in the dialog box to get the machine to move to the correct position.

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
05 Mar 2024 19:15 #295249 by rodw
Replied by rodw on topic QtDragon bug?
Please post your hal and ini files

Please Log in or Create an account to join the conversation.

  • faeluke
  • faeluke's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
05 Mar 2024 20:00 #295253 by faeluke
Replied by faeluke on topic QtDragon bug?
Thanks for your interest in this issue!

 

File Attachment:

File Name: Frank.ini
File Size:6 KB
   

File Attachment:

File Name: qtdragon.pref.txt
File Size:4 KB


The INI file has the correct coordinates so that the M6 remap works
The picture shows the values that had to be edited on the screen to position the tool head over the sensor. 
The QT dragon preferences file shows the location that agrees with the screen. 

In an attempt to be clear, the OFFSETS screen will not work if I put the correct units in inches. 
It works with the values that have been converted to mm.
The M6 remap goes to the correct position given the values in the INI file. 

My point is that the screen clearly indicates inches as the unit of measure, but requires the units to be in mm.

Do you agree?

If you spot any other errors, help would be greatly appreciated.   
I am about to start on auto tool change. 

 
Attachments:

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
05 Mar 2024 23:09 #295267 by rodw
Replied by rodw on topic QtDragon bug?
Seems odd. The docs say it uses machine units (inches in your case) Can you check your gcode and remap files don't issue a G21?
I will leave this one for Chris M

Please Log in or Create an account to join the conversation.

More
06 Mar 2024 04:29 #295290 by cmorley
Replied by cmorley on topic QtDragon bug?
I can confirm, it is a bug. I'll look at a fix soon.

Chris
The following user(s) said Thank You: faeluke

Please Log in or Create an account to join the conversation.

More
07 Mar 2024 04:33 #295376 by cmorley
Replied by cmorley on topic QtDragon bug?
Could you try this fix?

add this file (rename it qtdragon_handler.py) in your config file, in the folder qtvcp/screens/qtdragon

If anything goes wrong just remove that file and the original will be used again.
Attachments:

Please Log in or Create an account to join the conversation.

  • faeluke
  • faeluke's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
07 Mar 2024 12:28 #295399 by faeluke
Replied by faeluke on topic QtDragon bug?
I will try and have an answer today, or tomorrow at the latest.

Please Log in or Create an account to join the conversation.

More
12 Mar 2024 03:34 #295713 by cmorley
Replied by cmorley on topic QtDragon bug?
Did you get a chance to test?

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.114 seconds
Powered by Kunena Forum