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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jake Read
ucbus-stepper
Commits
0ddf452a
Commit
0ddf452a
authored
2 years ago
by
Jake Read
Browse files
Options
Downloads
Patches
Plain Diff
flash on halt
parent
607eff3a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
firmware/axl-stepper/src/main.cpp
+8
-1
8 additions, 1 deletion
firmware/axl-stepper/src/main.cpp
with
8 additions
and
1 deletion
firmware/axl-stepper/src/main.cpp
+
8
−
1
View file @
0ddf452a
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#include
"osape_arduino/vp_arduinoSerial.h"
#include
"osape_arduino/vp_arduinoSerial.h"
#include
"osape_ucbus/vb_ucBusDrop.h"
#include
"osape_ucbus/vb_ucBusDrop.h"
OSAP
osap
(
"axl-stepper_
y
"
);
OSAP
osap
(
"axl-stepper_
x
"
);
VPort_ArduinoSerial
vpUSBSerial
(
&
osap
,
"arduinoUSBSerial"
,
&
Serial
);
VPort_ArduinoSerial
vpUSBSerial
(
&
osap
,
"arduinoUSBSerial"
,
&
Serial
);
...
@@ -83,8 +83,12 @@ void updateStatesEP(void){
...
@@ -83,8 +83,12 @@ void updateStatesEP(void){
// -------------------------------------------------------- 3: Halt
// -------------------------------------------------------- 3: Halt
uint32_t
haltLightOnTime
=
0
;
EP_ONDATA_RESPONSES
onHaltData
(
uint8_t
*
data
,
uint16_t
len
){
EP_ONDATA_RESPONSES
onHaltData
(
uint8_t
*
data
,
uint16_t
len
){
axl_halt
();
axl_halt
();
ERRLIGHT_ON
;
haltLightOnTime
=
millis
();
return
EP_ONDATA_REJECT
;
return
EP_ONDATA_REJECT
;
}
}
...
@@ -222,6 +226,9 @@ void loop() {
...
@@ -222,6 +226,9 @@ void loop() {
updateStatesEP
();
updateStatesEP
();
//axl_printHomeState();
//axl_printHomeState();
}
}
if
(
haltLightOnTime
+
250
<
millis
()){
ERRLIGHT_OFF
;
}
}
}
// -------------------------------------------------------- Small-Time Ops
// -------------------------------------------------------- Small-Time Ops
...
...
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