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
95f4206a
Commit
95f4206a
authored
Feb 11, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ssab antisway, array of pointer modification
parent
333c3122
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
453 additions
and
12 deletions
+453
-12
ssabox/lib/ssabox/src/ssabox_as_phasor_methods.h
ssabox/lib/ssabox/src/ssabox_as_phasor_methods.h
+1
-1
ssabox/lib/ssabox/src/ssabox_plc_antisway.c
ssabox/lib/ssabox/src/ssabox_plc_antisway.c
+2
-2
ssabox/wbl/mcomp/src/ssabox.wb_load
ssabox/wbl/mcomp/src/ssabox.wb_load
+450
-9
No files found.
ssabox/lib/ssabox/src/ssabox_as_phasor_methods.h
View file @
95f4206a
...
...
@@ -196,7 +196,7 @@
#define AS_OBJ_M_NLIMIT (object->mparams[1]) //Default 80. Maximum numbber of messages in queue.
#define AS_OBJ_M_ALWAIT (object->mparams[2]) //Default 20. Wait this number of cycles before taking next message from queue.
#define AS_OBJ_M_ALHOLD (object->mparams[3]) //Default 30. Hold the current message this number of cycles.
#define AS_OBJ_MESSAGEQP(i) ((AS_messageQ *) object->messageQ[(i)])
#define AS_OBJ_MESSAGEQP(i) ((AS_messageQ *)
(unsigned long int)
object->messageQ[(i)])
#define AS_OBJ_MESSAGEQPP(i) ((AS_messageQ **) &object->messageQ[(i)])
#define AS_ADDMESSAGE(type, charpp, messageArgs...) { \
if (asprintf(charpp, messageArgs) < 0) {
/* ! a malloc() failure */
\
...
...
ssabox/lib/ssabox/src/ssabox_plc_antisway.c
View file @
95f4206a
...
...
@@ -71,8 +71,8 @@ void Ssab_AntiSway_init(object)
AS_OBJ_SETP
->
ph
=
NULL
;
object
->
other
=
NULL
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
object
->
messageQ
[
(
i
)]
=
NULL
;
// AS_OBJ_MESSAGEQP(i) =
NULL;
object
->
messageQ
[
i
]
=
0
;
// AS_OBJ_MESSAGEQP(i) = NULL;
(
object
->
message
[
i
])[
79
]
=
'\0'
;
}
}
...
...
ssabox/wbl/mcomp/src/ssabox.wb_load
View file @
95f4206a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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