Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
f6553f80
Commit
f6553f80
authored
Oct 20, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge axis dynamics, local database added
parent
8063cd9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+23
-7
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
f6553f80
...
...
@@ -10267,19 +10267,28 @@ int GeAxis::connect( grow_tObject object, glow_sTraceData *trace_data)
int
attr_type_min
,
attr_type_max
;
int
min_found
=
0
;
int
max_found
=
0
;
int
db
;
imin_value
=
(
int
)(
min_value
+
(
min_value
>=
0
?
1
:-
1
)
*
0.5
);
imax_value
=
(
int
)(
max_value
+
(
max_value
>=
0
?
1
:-
1
)
*
0.5
);
min_value_p
=
0
;
imin_value_p
=
0
;
dyn
->
parse_attr_name
(
minvalue_attr
,
parsed_name
,
&
inverted
,
&
attr_type_min
,
&
attr_size
);
d
b
=
d
yn
->
parse_attr_name
(
minvalue_attr
,
parsed_name
,
&
inverted
,
&
attr_type_min
,
&
attr_size
);
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
switch
(
attr_type_min
)
{
case
pwr_eType_Float32
:
sts
=
dyn
->
graph
->
ref_object_info
(
dyn
->
cycle
,
parsed_name
,
(
void
**
)
&
min_value_p
,
switch
(
db
)
{
case
graph_eDatabase_Gdh
:
sts
=
dyn
->
graph
->
ref_object_info
(
dyn
->
cycle
,
parsed_name
,
(
void
**
)
&
min_value_p
,
&
min_value_subid
,
attr_size
);
break
;
case
graph_eDatabase_Local
:
min_value_p
=
(
pwr_tFloat32
*
)
dyn
->
graph
->
localdb_ref_or_create
(
parsed_name
,
attr_type_min
);
default:
;
}
min_found
=
1
;
break
;
case
pwr_eType_Int32
:
...
...
@@ -10299,13 +10308,20 @@ int GeAxis::connect( grow_tObject object, glow_sTraceData *trace_data)
max_value_p
=
0
;
imax_value_p
=
0
;
dyn
->
parse_attr_name
(
maxvalue_attr
,
parsed_name
,
&
inverted
,
&
attr_type_max
,
&
attr_size
);
d
b
=
d
yn
->
parse_attr_name
(
maxvalue_attr
,
parsed_name
,
&
inverted
,
&
attr_type_max
,
&
attr_size
);
if
(
strcmp
(
parsed_name
,
""
)
!=
0
)
{
switch
(
attr_type_max
)
{
case
pwr_eType_Float32
:
sts
=
dyn
->
graph
->
ref_object_info
(
dyn
->
cycle
,
parsed_name
,
(
void
**
)
&
max_value_p
,
&
max_value_subid
,
attr_size
);
switch
(
db
)
{
case
graph_eDatabase_Gdh
:
sts
=
dyn
->
graph
->
ref_object_info
(
dyn
->
cycle
,
parsed_name
,
(
void
**
)
&
max_value_p
,
&
max_value_subid
,
attr_size
);
case
graph_eDatabase_Local
:
max_value_p
=
(
pwr_tFloat32
*
)
dyn
->
graph
->
localdb_ref_or_create
(
parsed_name
,
attr_type_max
);
default:
;
}
max_found
=
1
;
break
;
case
pwr_eType_Int32
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment