Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Hideaki Tai
/
omni_main
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e23c0937
authored
Nov 30, 2018
by
Hideaki Tai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for new hardware (pull-up registor added)
parent
1d8355dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/main.cpp
+5
-6
No files found.
src/main.cpp
View file @
e23c0937
...
@@ -26,7 +26,7 @@ void setup()
...
@@ -26,7 +26,7 @@ void setup()
// ----- Emergency Switch -----
// ----- Emergency Switch -----
pinMode
(
PIN_EMERGENCY
,
INPUT
_PULLUP
);
pinMode
(
PIN_EMERGENCY
,
INPUT
);
// ----- check I2C -----
// ----- check I2C -----
Wire
.
begin
();
Wire
.
begin
();
...
@@ -55,20 +55,19 @@ void setup()
...
@@ -55,20 +55,19 @@ void setup()
Serial
.
println
(
"set speed profile"
);
Serial
.
println
(
"set speed profile"
);
whill
.
speed
(
SPEEDMODE
::
RS232C
,
60
,
90
,
160
,
60
,
50
,
80
,
60
,
60
,
160
);
// max
whill
.
speed
(
SPEEDMODE
::
RS232C
,
60
,
90
,
160
,
60
,
50
,
80
,
60
,
60
,
160
);
// max
delay
(
5
00
);
delay
(
10
00
);
Serial
.
println
(
"check speed profile"
);
Serial
.
println
(
"check speed profile"
);
whill
.
streaming
(
true
,
WHILL_INFO_INTERVAL_MS
,
DATASET
::
SPEED_PROFILE
);
// valid in next streaming phase
whill
.
streaming
(
true
,
WHILL_INFO_INTERVAL_MS
,
DATASET
::
SPEED_PROFILE
);
// valid in next streaming phase
waitReply
(
WhillOmni
::
LR
::
L
,
WHILL_INFO_INTERVAL_MS
+
500
);
waitReply
(
WHILL_INFO_INTERVAL_MS
+
1000
);
waitReply
(
WhillOmni
::
LR
::
R
);
Serial
.
println
(
"change streaming to sensor info"
);
Serial
.
println
(
"change streaming to sensor info"
);
whill
.
streaming
(
true
,
WHILL_INFO_INTERVAL_MS
,
DATASET
::
SENSOR_INFO
);
whill
.
streaming
(
true
,
WHILL_INFO_INTERVAL_MS
,
DATASET
::
SENSOR_INFO
);
delay
(
5
00
);
delay
(
10
00
);
attachInterrupt
(
digitalPinToInterrupt
(
PIN_EMERGENCY
),
disableMotor
,
FALL
ING
);
attachInterrupt
(
digitalPinToInterrupt
(
PIN_EMERGENCY
),
disableMotor
,
RIS
ING
);
Serial
.
println
(
"start program"
);
Serial
.
println
(
"start program"
);
fps
.
start
();
fps
.
start
();
...
...
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