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
75628f44
authored
Nov 29, 2018
by
Hideaki Tai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change default xbee settings
parent
c5243f41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
include/main.h
+16
-14
No files found.
include/main.h
View file @
75628f44
...
...
@@ -91,44 +91,46 @@ bool initEeprom(uint8_t hw_id)
void
setupXBee
(
uint8_t
hw_id
)
{
xb_settings
[
0
].
channel
=
0x
11
;
xb_settings
[
0
].
pan_id
=
0x0
6
;
xb_settings
[
0
].
channel
=
0x
0C
;
xb_settings
[
0
].
pan_id
=
0x0
1
;
xb_settings
[
0
].
dst_addr_h
=
0x00000000
;
xb_settings
[
0
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
0
].
packetization_timeout
=
10
;
xb_settings
[
1
].
channel
=
0x0
C
;
xb_settings
[
1
].
pan_id
=
0x0
1
;
xb_settings
[
1
].
channel
=
0x0
D
;
xb_settings
[
1
].
pan_id
=
0x0
2
;
xb_settings
[
1
].
dst_addr_h
=
0x00000000
;
xb_settings
[
1
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
1
].
packetization_timeout
=
10
;
xb_settings
[
2
].
channel
=
0x
0D
;
xb_settings
[
2
].
pan_id
=
0x0
2
;
xb_settings
[
2
].
channel
=
0x
12
;
xb_settings
[
2
].
pan_id
=
0x0
3
;
xb_settings
[
2
].
dst_addr_h
=
0x00000000
;
xb_settings
[
2
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
2
].
packetization_timeout
=
10
;
xb_settings
[
3
].
channel
=
0x0
E
;
xb_settings
[
3
].
pan_id
=
0x0
3
;
xb_settings
[
3
].
channel
=
0x0
F
;
xb_settings
[
3
].
pan_id
=
0x0
4
;
xb_settings
[
3
].
dst_addr_h
=
0x00000000
;
xb_settings
[
3
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
3
].
packetization_timeout
=
10
;
xb_settings
[
4
].
channel
=
0x
0F
;
xb_settings
[
4
].
pan_id
=
0x0
4
;
xb_settings
[
4
].
channel
=
0x
10
;
xb_settings
[
4
].
pan_id
=
0x0
5
;
xb_settings
[
4
].
dst_addr_h
=
0x00000000
;
xb_settings
[
4
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
4
].
packetization_timeout
=
10
;
xb_settings
[
5
].
channel
=
0x1
0
;
xb_settings
[
5
].
pan_id
=
0x0
5
;
xb_settings
[
5
].
channel
=
0x1
1
;
xb_settings
[
5
].
pan_id
=
0x0
6
;
xb_settings
[
5
].
dst_addr_h
=
0x00000000
;
xb_settings
[
5
].
dst_addr_l
=
0x0000FFFF
;
xb_settings
[
5
].
packetization_timeout
=
10
;
uint8_t
index
=
hw_id
;
if
(
hw_id
>
5
)
index
=
0
;
uint8_t
index
=
0xFF
;
if
(
hw_id
<
1
)
index
=
5
;
else
if
(
hw_id
>
6
)
index
=
5
;
else
index
=
hw_id
-
1
;
xbeecmd
.
channel
(
xb_settings
[
index
].
channel
);
xbeecmd
.
panID
(
xb_settings
[
index
].
pan_id
);
...
...
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