Skip to content

Improved 3DVision protocol and frame timing #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 3DVisionAVR/IREmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#ifndef _IREMITTER_H_
#define _IREMITTER_H_

// Frame exposure duration in half-microseconds (@16MHz)
#define FRAME_DURATION (2*4000)
// Duration between close to open eye frames - in half-microseconds (@16MHz)
#define FRAME_DURATION (2*1000)
// Time between sync trigger and start of IR token (same units)
#define FRAME_PAN (10)
#define FRAME_PAN (2*3000) // for 120Hz display (use 2*3400 for 100Hz)

// INT1, pin 2 on "Arduino Pro Micro"
#define SYNCIN 1
Expand Down
12 changes: 8 additions & 4 deletions 3DVisionAVR/IRProtocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ const IR_Protocol_t IRProt_Xpand = {
.indices = { 0,0, 5,0 },
.timings = { 18,20,18,20,18, 18,60,18 }
};

// For 3D Vision only, indexed in this order:
// [0]: Close left eye [1] Open right eye
// [2]: Close right eye [3]: Open left eye
const IR_Protocol_t IRProt_3DVision = {
.sizes = { 3,3, 1,3 },
.indices = { 0,3, 6,7 },
.timings = { 23,46,31, 23,78,40,
43, 23,21,24 }
.sizes = { 3,3, 3,1 },
.indices = { 0,3, 6,9 },
.timings = { 23,21,24, 23,46,31,
23,78,40, 43 }
};
const IR_Protocol_t IRProt_Sharp = {
.sizes = { 15,0, 15,0 },
Expand Down