Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
November 2021 Blimp Competition
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shahrul Kamil bin Hassan
November 2021 Blimp Competition
Commits
c7ee6140
Commit
c7ee6140
authored
3 years ago
by
Zhaoliang Zheng
Browse files
Options
Downloads
Patches
Plain Diff
add two Lidar code in to the master
parent
77a658ab
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Control/Laptop_Code/basic_comm_test/ESP32_master/ESP32_master.ino
+6
-4
6 additions, 4 deletions
...Laptop_Code/basic_comm_test/ESP32_master/ESP32_master.ino
with
6 additions
and
4 deletions
Code/Control/Laptop_Code/basic_comm_test/ESP32_master/ESP32_master.ino
+
6
−
4
View file @
c7ee6140
...
...
@@ -5,12 +5,12 @@
// ==================================== broadcast address ============================================
// MAC Address of the receiver (SLAVE)
//uint8_t broadcastAddress[] = {0xC4, 0xDD, 0x57, 0x9E, 0x91, 0x74}; // #1
//
uint8_t broadcastAddress[] = {0x40, 0xF5, 0x20, 0x44, 0xBD, 0xF8}; // #2
uint8_t
broadcastAddress
[]
=
{
0x40
,
0xF5
,
0x20
,
0x44
,
0xBD
,
0xF8
};
// #2
//uint8_t broadcastAddress[] = {0xC4, 0xDD, 0x57, 0x9E, 0x8A, 0x98}; // #3
//uint8_t broadcastAddress[] = {0x40, 0xF5, 0x20, 0x44, 0xB6, 0x4C}; // #4
//uint8_t broadcastAddress[] = {0x40, 0xF5, 0x20, 0x44, 0xC0, 0xD8}; // #5
//uint8_t broadcastAddress[] = {0x40, 0xF5, 0x20, 0x44, 0xDE, 0xE0}; // #6
uint8_t
broadcastAddress
[]
=
{
0x3C
,
0x61
,
0x05
,
0x4A
,
0xD3
,
0x3C
};
// #7
//
uint8_t broadcastAddress[] = {0x3C, 0x61, 0x05, 0x4A, 0xD3, 0x3C}; // #7
//uint8_t broadcastAddress[] = {0x3C, 0x61, 0x05, 0x9B, 0x04, 0x98}; // #8
// ==================================== global data =================================================
String
success
;
...
...
@@ -29,7 +29,8 @@ typedef struct struct_message {
int
Rrx
;
int
Rry
;
int
Rrz
;
int
Rdist
;
int
Rdist1
;
int
Rdist2
;
String
DebugM
;
int
Spwm1
;
int
Spwm2
;
...
...
@@ -70,7 +71,8 @@ void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) {
Serial
.
println
(
sentData
.
Rrx
);
Serial
.
println
(
sentData
.
Rry
);
Serial
.
println
(
sentData
.
Rrz
);
Serial
.
println
(
sentData
.
Rdist
);
Serial
.
println
(
sentData
.
Rdist1
);
Serial
.
println
(
sentData
.
Rdist2
);
Serial
.
println
(
sentData
.
DebugM
);
}
// =================================== setup ==================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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