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
cc44c535
Commit
cc44c535
authored
2 years ago
by
Jake Read
Browse files
Options
Downloads
Patches
Plain Diff
at the minimum viable clank-corexy controller
parent
ae944adc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide 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
-2
12 additions, 2 deletions
firmware/axl-stepper/src/main.cpp
with
13 additions
and
3 deletions
axl
@
f49a43eb
Compare
3d62ffa4
...
f49a43eb
Subproject commit
3d62ffa48024d7c43844653dac7199f1bbacc254
Subproject commit
f49a43eb9cc400704cf8e965e71be198aaec5148
This diff is collapsed.
Click to expand it.
firmware/axl-stepper/src/main.cpp
+
12
−
2
View file @
cc44c535
...
@@ -54,7 +54,7 @@ Endpoint axlSettingsEP(&osap, "axlSettings", onAXLSettingsData);
...
@@ -54,7 +54,7 @@ Endpoint axlSettingsEP(&osap, "axlSettings", onAXLSettingsData);
// -------------------------------------------------------- 3: Axl Modal Requests
// -------------------------------------------------------- 3: Axl Modal Requests
EP_ONDATA_RESPONSES
onState
Request
Data
(
uint8_t
*
data
,
uint16_t
len
){
EP_ONDATA_RESPONSES
onStateData
(
uint8_t
*
data
,
uint16_t
len
){
// check for partner-config badness,
// check for partner-config badness,
if
(
len
!=
AXL_NUM_DOF
*
4
+
2
){
OSAP
::
error
(
"state req has bad DOF count"
);
return
EP_ONDATA_REJECT
;
}
if
(
len
!=
AXL_NUM_DOF
*
4
+
2
){
OSAP
::
error
(
"state req has bad DOF count"
);
return
EP_ONDATA_REJECT
;
}
// we have accel, rate, posn data,
// we have accel, rate, posn data,
...
@@ -99,7 +99,17 @@ EP_ONDATA_RESPONSES onStateRequestData(uint8_t* data, uint16_t len){
...
@@ -99,7 +99,17 @@ EP_ONDATA_RESPONSES onStateRequestData(uint8_t* data, uint16_t len){
return
EP_ONDATA_REJECT
;
return
EP_ONDATA_REJECT
;
}
}
Endpoint
stateRequestsEP
(
&
osap
,
"stateRequests"
,
onStateRequestData
);
uint8_t
stateDataDummy
[
256
];
boolean
beforeAxlStateQuery
(
void
);
Endpoint
stateEP
(
&
osap
,
"axlState"
,
onStateData
,
beforeAxlStateQuery
);
boolean
beforeAxlStateQuery
(
void
){
uint16_t
len
=
axl_getState
(
stateDataDummy
);
stateEP
.
write
(
stateDataDummy
,
len
);
return
true
;
}
// -------------------------------------------------------- 4: Axl Queue Addition
// -------------------------------------------------------- 4: Axl Queue Addition
...
...
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