Skip to content

Commit

Permalink
full calibration process
Browse files Browse the repository at this point in the history
  • Loading branch information
wenoptics committed Dec 31, 2019
1 parent 1fc8d6d commit bc2edb8
Show file tree
Hide file tree
Showing 19 changed files with 5,986 additions and 2,925 deletions.
701 changes: 701 additions & 0 deletions OdysseyNow/Assets/CalibrationDirectorNew.cs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions OdysseyNow/Assets/CalibrationDirectorNew.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions OdysseyNow/Assets/CalibrationOdysseySettings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CalibrationOdysseySettings : MonoBehaviour
{

[Header("Calibration Step 1:")]
public bool p1_read;
public bool p2_read;

[Header("Calibration Step 2:")]
public bool useOverlay;
public SpriteRenderer screenOverlay;
public string overlay_extra_text;

public GameObject overlay_topLeft;
public string overlay_topLeft_extra_text;

public GameObject overlay_bottomRight;
public string overlay_bottomRight_extra_text;

[Header("Calibration Step 3:")]
public float _calib_p1_read_votage_x_left = 617;
public float _calib_p1_read_votage_y_top = 711;
public float _calib_p1_read_votage_x_right = 300;
public float _calib_p1_read_votage_y_bottom = 379;

public float _calib_p1_write_votage_x_left = 420;
public float _calib_p1_write_votage_y_top = 180;
public float _calib_p1_write_votage_x_right = 302;
public float _calib_p1_write_votage_y_bottom = 80;

[Header("Calibration Step 4:")]
public float _calib_p2_read_votage_x_left = 617;
public float _calib_p2_read_votage_y_top = 711;
public float _calib_p2_read_votage_x_right = 300;
public float _calib_p2_read_votage_y_bottom = 379;

public float _calib_p2_write_votage_x_left = 420;
public float _calib_p2_write_votage_y_top = 180;
public float _calib_p2_write_votage_x_right = 302;
public float _calib_p2_write_votage_y_bottom = 80;

[Header("Calibration Step 5:")]
public bool show_validation;

[Header("")]
public float _calib_unity_x_left = -7.7f;
public float _calib_unity_x_right = 7.7f;
public float _calib_unity_y_top = 4.4f;
public float _calib_unity_y_bottom = -4.4f;

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
11 changes: 11 additions & 0 deletions OdysseyNow/Assets/CalibrationOdysseySettings.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bc2edb8

Please sign in to comment.