Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ucbus-stepper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jake Read
ucbus-stepper
Commits
936b3d58
Commit
936b3d58
authored
2 years ago
by
Jake Read
Browse files
Options
Downloads
Patches
Plain Diff
write / plumb segmentAcks, segmentCompleteMsgs, and run first full queue
parent
3087001f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
firmware/axl-stepper/src/axl
+1
-1
1 addition, 1 deletion
firmware/axl-stepper/src/axl
firmware/axl-stepper/src/main.cpp
+12
-6
12 additions, 6 deletions
firmware/axl-stepper/src/main.cpp
with
13 additions
and
7 deletions
axl
@
d1e3aafd
Compare
be9a5a91
...
d1e3aafd
Subproject commit
be9a5a919bc9c6324f4ce6dcdfccac6837b659df
Subproject commit
d1e3aafd55d1fa784b6f05fce71ee70e5630b3d7
This diff is collapsed.
Click to expand it.
firmware/axl-stepper/src/main.cpp
+
12
−
6
View file @
936b3d58
...
...
@@ -139,12 +139,13 @@ EP_ONDATA_RESPONSES onHaltInData(uint8_t* data, uint16_t len){
Endpoint
haltInEP
(
&
osap
,
"haltIn"
,
onHaltInData
);
// -------------------------------------------------------- 6, 7: Outputs
// -------------------------------------------------------- 6, 7
, 8
: Outputs
Endpoint
queueAckOutEP
(
&
osap
,
"queueAckOut"
);
Endpoint
haltOutEP
(
&
osap
,
"haltOut"
);
Endpoint
segmentAckOutEP
(
&
osap
,
"segmentAckOut"
);
Endpoint
segmentCompleteOutEP
(
&
osap
,
"segmentCompleteOut"
);
// --------------------------------------------------------
8
: Motor Settings
// --------------------------------------------------------
9
: Motor Settings
uint8_t
axisPick
=
0
;
boolean
invert
=
false
;
...
...
@@ -205,10 +206,15 @@ void loop() {
if
(
axlDataLen
){
haltOutEP
.
write
(
axlData
,
axlDataLen
);
}
// check for
on-
queue
-completion
info...
axlDataLen
=
axl_get
QueueAck
(
axlData
);
// check for queue
Ack
info...
axlDataLen
=
axl_get
SegmentAckMsg
(
axlData
);
if
(
axlDataLen
){
queueAckOutEP
.
write
(
axlData
,
axlDataLen
);
segmentAckOutEP
.
write
(
axlData
,
axlDataLen
);
}
// check for queueMoveComplete
axlDataLen
=
axl_getSegmentCompleteMsg
(
axlData
);
if
(
axlDataLen
){
segmentCompleteOutEP
.
write
(
axlData
,
axlDataLen
);
}
// refresh stepper hw,
stepper_hw
->
dacRefresh
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment