Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
modular-motion-head
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
modular-motion-head
Commits
c1124c8a
Commit
c1124c8a
authored
Aug 9, 2021
by
Jake Read
Browse files
Options
Downloads
Patches
Plain Diff
back together
parent
a591263a
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/motion-head/src/main.cpp
+12
-12
12 additions, 12 deletions
firmware/motion-head/src/main.cpp
firmware/motion-head/src/osape-d51
+1
-1
1 addition, 1 deletion
firmware/motion-head/src/osape-d51
with
13 additions
and
13 deletions
firmware/motion-head/src/main.cpp
+
12
−
12
View file @
c1124c8a
...
...
@@ -205,7 +205,6 @@ void setup() {
// l i g h t s
ERRLIGHT_ON
;
CLKLIGHT_ON
;
/*
// osap
osapSetup
();
// ports
...
...
@@ -230,16 +229,18 @@ void setup() {
// smoothie (and frequency of loop below)
#warning pls reconsider maximal rates / etc given new loop freq... and how / where to parameterize
smoothieRoll
->
init
(
20000
);
*/
// bare serial
Serial
.
begin
(
9600
);
//
Serial.begin(9600);
// barebus
ucBusHead_setup
();
//
ucBusHead_setup();
// 25kHz base (40us period) or
// 20kHz base (50us period)
d51ClockBoss
->
start_ticker_a
(
10
0
);
d51ClockBoss
->
start_ticker_a
(
5
0
);
}
//#define TEST_TX
#ifdef TEST_TX
unsigned
long
lastTx
=
0
;
uint8_t
testTx
[
33
]
=
{
1
,
2
,
3
,
4
,
0
,
6
,
7
,
8
,
9
,
10
,
...
...
@@ -248,20 +249,19 @@ uint8_t testTx[33] = {
31
,
32
,
33
};
uint8_t
tstRx
[
256
];
#define TEST_TX
#endif
void
loop
()
{
// write ~ every second, transmit on chb to drop 1
// check indices on the way down / up ... was shifting, are not anymore
//
osapLoop();
//
conveyor->on_idle(nullptr);
osapLoop
();
conveyor
->
on_idle
(
nullptr
);
#ifdef TEST_TX
if
(
ucBusHead_ctr
(
1
)){
uint16_t
len
=
ucBusHead_read
(
1
,
tstRx
);
logPacket
(
tstRx
,
len
);
}
#ifdef TEST_TX
if
(
millis
()
>
lastTx
+
100
){
lastTx
=
millis
();
if
(
ucBusHead_ctsB
(
1
)){
...
...
This diff is collapsed.
Click to expand it.
osape-d51
@
af5f9a0e
Compare
7d0be7a5
...
af5f9a0e
Subproject commit
7d0be7a5c309aab2a3300116c7e9fd2c425fc6cb
Subproject commit
af5f9a0e004a6134b38f0f1996bebda271f9c655
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