blob: c0804763a9465f62418480fd60947fae15830046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/********************************************************************
* Description: emcglb.c
* Globals initialized to values in emccfg.h
*
* Derived from a work by Fred Proctor & Will Shackleford
*
* Author:
* License: GPL Version 2
* System: Linux
*
* Copyright (c) 2004 All rights reserved.
*
* Last change:
********************************************************************/
#include <string.h> /* strcpy() */
#include "emcglb.h" /* these decls */
#include "emccfg.h" /* their initial values */
#include "emcpos.h" /* EmcPose */
char emc_inifile[LINELEN] = DEFAULT_EMC_INIFILE;
char emc_nmlfile[LINELEN] = DEFAULT_EMC_NMLFILE;
char rs274ngc_startup_code[LINELEN] =
DEFAULT_RS274NGC_STARTUP_CODE;
int emc_debug = 0; /* initially no debug messages */
double emc_task_cycle_time = DEFAULT_EMC_TASK_CYCLE_TIME;
double emc_io_cycle_time = DEFAULT_EMC_IO_CYCLE_TIME;
int emc_task_interp_max_len = DEFAULT_EMC_TASK_INTERP_MAX_LEN;
char tool_table_file[LINELEN] = DEFAULT_TOOL_TABLE_FILE;
double traj_default_velocity = DEFAULT_TRAJ_DEFAULT_VELOCITY;
double traj_max_velocity = DEFAULT_TRAJ_MAX_VELOCITY;
double axis_max_velocity[EMC_AXIS_MAX] = { 1.0 }; /*! \todo FIXME - I think
these should be
0.0 */
double axis_max_acceleration[EMC_AXIS_MAX] = { 1.0 };
EmcPose tool_change_position; /* no defaults */
unsigned char have_tool_change_position = 0; /* default is 'not there' */
int taskplanopen = 0;
void emcInitGlobals()
{
int t;
for (t = 0; t < EMC_AXIS_MAX; t++) {
axis_max_velocity[t] = DEFAULT_AXIS_MAX_VELOCITY;
}
}
|