Commit 7448d11
* move tokenizing into command functions (don't mix globals and function parameters)
* rename pch -> s uniformly
* fix double-tokenize e.g. in setDebug()
* lots of cleanup for get/setSpindle(), get/setSpindleOverride() and get/setBrake()
* fixed segfault of "get spindle" without argument
* fixed snprintf() compiler warnings
* support multiple spindles
* make spindlenum the last input argument
* output NML errors after NML failures (untested)
* fix off-by-one in max-spindle test
* replace EMCMOT_MAX_SPINDLES with actual number of spindles
* add missing "zero input items parsed" check for sscanf()
* fix cppcheck warnings
* handle NML errors in setEstop()
* add "get update" command
* replace write() and sockWrite() with dprintf() where applicable
* eliminate sockWrite()
* fix all \n\r -> \r\n (remember "ReturN")
* pass string literals if there's no format string
* prefer using string literals
* use spindle 0 by default, not all spindles
* fix helptext
* handle errors in all send*() functions
* rename *_s -> *Str according to previous style
* fix missing argument documentation
* make getTeleopEnable() output ON/OFF instead of YES/NO according to setTeleopEnable() using checkOnOff(); fix help text
* rename set_wait -> wait_mode
* eliminate initMain()
* rename initSockets -> initSocket
* remove unneeded includes
* replace strncpy() with rtapi_strlcpy(); commenting
* use sizeof() to loop over array instead of last array element; prefer for over while
* introduce OUT() helper macro
* replace snprintf(context->outBuf,...) with OUT() macro; don't use string substitution excessively
* output TOOL_OFFSET as double
* make axisnumber() parse all possible notations
* treat set/getFeedOverride percent as double
* fix commandSet() returns
* rewrite getAbs/Rel*Pos, getJointPos, getPosOffset
* fix commandGet return values
* cleanup parseCommand
* formatting
* more error handling
* more error user feedback
* more input validation
* minor cleanups1 parent 095f7f0 commit 7448d11
File tree
4 files changed
+1590
-1291
lines changed- docs/man/man1
- src/emc/usr_intf
- tests/linuxcncrsh
4 files changed
+1590
-1291
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| 322 | + | |
321 | 323 | | |
322 | 324 | | |
323 | 325 | | |
| |||
343 | 345 | | |
344 | 346 | | |
345 | 347 | | |
346 | | - | |
347 | | - | |
| 348 | + | |
| 349 | + | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
353 | | - | |
354 | | - | |
| 355 | + | |
| 356 | + | |
355 | 357 | | |
356 | 358 | | |
357 | 359 | | |
358 | 360 | | |
359 | 361 | | |
360 | | - | |
361 | | - | |
| 362 | + | |
| 363 | + | |
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
| |||
367 | 369 | | |
368 | 370 | | |
369 | 371 | | |
370 | | - | |
| 372 | + | |
371 | 373 | | |
372 | 374 | | |
373 | 375 | | |
| 376 | + | |
374 | 377 | | |
375 | 378 | | |
376 | 379 | | |
| |||
570 | 573 | | |
571 | 574 | | |
572 | 575 | | |
573 | | - | |
| 576 | + | |
574 | 577 | | |
575 | 578 | | |
576 | 579 | | |
| |||
0 commit comments