aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCNLohr <charles@cnlohr.com>2017-04-05 00:11:28 -0400
committerGitHub <noreply@github.com>2017-04-05 00:11:28 -0400
commit13e06951c7a9aa6ad10002ce4f80bd810dd562e3 (patch)
tree52df528f76566f682fffd50117fdda46da7601d6
parentd831f9ab967e4cf9f425e68799a0491f711a8a54 (diff)
downloadlibsurvive-13e06951c7a9aa6ad10002ce4f80bd810dd562e3.tar.gz
libsurvive-13e06951c7a9aa6ad10002ce4f80bd810dd562e3.tar.bz2
Update README.md
-rw-r--r--README.md18
1 files changed, 6 insertions, 12 deletions
diff --git a/README.md b/README.md
index 7ea932e..966370e 100644
--- a/README.md
+++ b/README.md
@@ -60,20 +60,16 @@ If I ever get to video output... OpenGL.
## Architecture
-There is an internal representation and an external representation. These lines may get blurred. Internal representation lives in .h files in the ```src/``` folder. External lives in ```include/``` folder.
-
-It is written in some fairly stout "layers" which are basically just function calls:
-
-| Layer | Description | Status |
-| ------- | ------------- | -------- |
-| survive_usb.c | Data is taken in at "survive_usb.c" from libusb. | Done |
-| survive_data.c | Raw HID messages are processed into logical "light" "analog" and "imu" messages. | Mostly done, Missing light data from controllers, and lighthouse data. |
-| survive_process.c | Process the high-level data into solutions for | Not yet started. Will be done by ultramn |
<TABLE><TR><TH>Description</TH><TH>Diagram</TH>
</TR><TR>
<TD WIDTH=50%>
-LibSurvive use a fairly straightforward architecture.
+
+### Layout
+
+In the src/ folder you'll find most of the internal code that is part of libsurvive. The redist/ folder contains code that libsurvive uses that was copied from other projects. Libsurvive links to other libraries, but very few. You'll find that most of the functionality lies within libsurvive or in the redist folder. For the user-facing headers you can find them in the include/ folder.
+
+### Logical Data Flow
There are device drivers, such as survive_vive.c which connect to physical devices, via libUSB, hidapi or another method and collect raw IMU and lightcap data. Lightcap data is specically a sensor ID, light pulse length (in ticks) and the time of the light pulse (in ticks). The driver also must provide locations of the sensors to populate the SurviveObject structures of whatever sensors that driver is responsible for.
@@ -88,8 +84,6 @@ Angleproc may also be overridden by the user for similar purposes to for "anglep
<!--<TABLE BORDER=1><TR><TD>TEST</TD><TD>HELLO</TD></TR></TABLE> -->
-I may or may not read data from the Vive regarding configuration. If I do, it would be added to the survive_usb.c
-
## Intel Integrated Graphics
The limiting factor for Vive viability on a given computer is the maximum available pixel clock frequency, and frequency limitations of the HDMI port, and HDMI and DisplayPort video cables. DisplayPort can support higher frequencies than HDMI, on Ivy Bridge HD4000 graphics. In fact, the Vive works with HD4000 graphics using DisplayPort, with native EDID resolution (2160x1200@90Hz).