Which format is correct?
- gardenweazel
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 188
- Thank you received: 8
16 Jul 2024 19:43 #305390
by gardenweazel
Which format is correct? was created by gardenweazel
All,
I noticed that there is a variation of variable naming conventions between linuxcnc version 2.8 and the DEVEL version.
The difference I'm seeing is a hyphen and an underscore delimiting variable words.
Here's the related v2.8 docs page and the related DEVEL (2.10) docs page .
The variables that I noticed are as follows:
2.8 Versionqtdragon.modbus-errors
qtdragon.spindle_amps
qtdragon.spindle_fault
qtdragon.spindle_volts
2.10 Versionqtdragon.spindle-modbus-connection
qtdragon.spindle-modbus-errors
qtdragon.spindle-amps
qtdragon.spindle-fault
qtdragon.spindle-volts
Are these typos or a valid change?
I noticed that there is a variation of variable naming conventions between linuxcnc version 2.8 and the DEVEL version.
The difference I'm seeing is a hyphen and an underscore delimiting variable words.
Here's the related v2.8 docs page and the related DEVEL (2.10) docs page .
The variables that I noticed are as follows:
2.8 Versionqtdragon.modbus-errors
qtdragon.spindle_amps
qtdragon.spindle_fault
qtdragon.spindle_volts
2.10 Versionqtdragon.spindle-modbus-connection
qtdragon.spindle-modbus-errors
qtdragon.spindle-amps
qtdragon.spindle-fault
qtdragon.spindle-volts
Are these typos or a valid change?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7864
- Thank you received: 2121
16 Jul 2024 20:15 #305397
by cmorley
Replied by cmorley on topic Which format is correct?
That was an intentional change.
Hyphen is the usual thing with HAL names.
Hyphen is the usual thing with HAL names.
The following user(s) said Thank You: gardenweazel
Please Log in or Create an account to join the conversation.
- gardenweazel
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 188
- Thank you received: 8
16 Jul 2024 20:36 #305406
by gardenweazel
Replied by gardenweazel on topic Which format is correct?
Thanks Chris!
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.060 seconds