Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Calibratio
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
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
LuFG VR VIS
VR-Group
Unreal-Development
Tools
Calibratio
Commits
74c3c429
Commit
74c3c429
authored
5 years ago
by
Sebastian Pape
Browse files
Options
Downloads
Patches
Plain Diff
Added "random" delay to avoid hitting the same point in the frame-sync every time
parent
56204690
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
MotionToPhotonMeter.ino
+4
-2
4 additions, 2 deletions
MotionToPhotonMeter.ino
with
4 additions
and
2 deletions
MotionToPhotonMeter.ino
+
4
−
2
View file @
74c3c429
...
@@ -57,7 +57,7 @@ void core1( void * pvParameters ){
...
@@ -57,7 +57,7 @@ void core1( void * pvParameters ){
if
(
current_internal_status
==
InternalStatus
::
NotZeroed
if
(
current_internal_status
==
InternalStatus
::
NotZeroed
&&
result_number
<
requested_measurements
){
&&
result_number
<
requested_measurements
){
zeroServo
();
//Rearm
zeroServo
();
//Rearm
delay
(
5000
);
delay
(
5000
+
random
(
1
,
11
));
// Five seconds + random delay
rotation_servo
.
write
(
zeroValueForServo
-
deflection
);
//deflection movement
rotation_servo
.
write
(
zeroValueForServo
-
deflection
);
//deflection movement
}
}
...
@@ -100,6 +100,8 @@ void setup() {
...
@@ -100,6 +100,8 @@ void setup() {
pinMode
(
PhotoPin
,
INPUT
);
pinMode
(
PhotoPin
,
INPUT
);
pinMode
(
SensePin
,
INPUT_PULLDOWN
);
pinMode
(
SensePin
,
INPUT_PULLDOWN
);
randomSeed
(
analogRead
(
PhotoPin
)
+
analogRead
(
0
));
//Initalize Random seed
server
.
setup
();
server
.
setup
();
esp_task_wdt_init
(
6000
,
false
);
esp_task_wdt_init
(
6000
,
false
);
...
...
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