Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bits_time_of_flight_controller
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bits_libs
bits_time_of_flight_controller
Commits
b8a7bf8d
Commit
b8a7bf8d
authored
Aug 20, 2022
by
Orhan-Timo Altan
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
1e884053
No related branches found
No related tags found
1 merge request
!1
Timo
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bits_time_of_flight_controller.cpp
+1
-1
1 addition, 1 deletion
bits_time_of_flight_controller.cpp
bits_time_of_flight_controller.h
+1
-1
1 addition, 1 deletion
bits_time_of_flight_controller.h
with
2 additions
and
2 deletions
bits_time_of_flight_controller.cpp
+
1
−
1
View file @
b8a7bf8d
...
...
@@ -57,7 +57,7 @@ int bits_TimeOfFlightController::get_distance(int index) {
else
{
_println_tof_
(
" Ausserhalb des Messbereichs "
);
distance
=
-
1
;
distance
=
max_distance
+
1
;
}
return
distance
;
...
...
This diff is collapsed.
Click to expand it.
bits_time_of_flight_controller.h
+
1
−
1
View file @
b8a7bf8d
...
...
@@ -30,7 +30,7 @@ public:
private:
const
uint16_t
max_distance
=
4000
;
static
const
int
SENSOR_COUNT
=
5
;
int
TOF_XSHUTS
[
SENSOR_COUNT
]
=
{
0
,
2
9
,
8
,
9
,
23
};
// XShut Pins der einzelnen Time of Flight Sensoren
int
TOF_XSHUTS
[
SENSOR_COUNT
]
=
{
0
,
9
,
23
,
2
9
,
8
};
// XShut Pins der einzelnen Time of Flight Sensoren
int
TOF_ADDRESSES
[
SENSOR_COUNT
]
=
{
0x30
,
0x31
,
0x32
,
0x33
,
0x34
};
// Adresse der einzelnen Time of Flight Sensoren
typedef
struct
...
...
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