Bladeren bron

minor changes

videowall-pc-user 5 jaren geleden
bovenliggende
commit
59ed1ad6c7

+ 2 - 2
SketchAssistant/SketchAssistantWPF/MVP_Model.cs

@@ -36,7 +36,7 @@ namespace SketchAssistantWPF
         /// <summary>
         /// duration of the tectile feedback occuring once every passed centimeter (in milliseconds)
         /// </summary>
-        static readonly int TACTILE_SURFACE_FEEDBACK_DURATION = 50;
+        static readonly int TACTILE_SURFACE_FEEDBACK_DURATION = 15;
 
         /***********************/
         /*** CLASS VARIABLES ***/
@@ -255,7 +255,7 @@ namespace SketchAssistantWPF
             var b = Math.Abs(previousOptiCursorPosition.Y - currentOptiCursorPosition.Y);
             PathTraveled += Math.Sqrt(Math.Pow(a,2) + Math.Pow(b,2));
             //Set the Interval of vibrations here
-            if(PathTraveled > 2)
+            if(PathTraveled > 15)
             {
                 PathTraveled = 0;
                 LocalArmbandInterface.Actuate(0, TACTILE_SURFACE_FEEDBACK_INTENSITY, TACTILE_SURFACE_FEEDBACK_DURATION);

+ 1 - 0
SketchAssistant/SketchAssistantWPF/MainWindow.xaml.cs

@@ -118,6 +118,7 @@ namespace SketchAssistantWPF
         {
            // LocalArmbandInterface.deleteArmband();
             Console.WriteLine("armband deleted 2");
+            dispatcherTimer.Stop();
         }
 
         /// <summary>

+ 1 - 2
SketchAssistant/SketchAssistantWPF/SketchAssistantWPF.csproj

@@ -44,7 +44,7 @@
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <PlatformTarget>AnyCPU</PlatformTarget>
+    <PlatformTarget>x86</PlatformTarget>
     <DebugType>pdbonly</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\Release\</OutputPath>
@@ -103,7 +103,6 @@
     <Compile Include="ActionHistory.cs" />
     <Compile Include="LocalArmbandInterface.cs" />
     <Compile Include="Wristband.cs" />
-    <Compile Include="CustomCanvas.cs" />
     <Compile Include="DebugData.cs" />
     <Compile Include="FileImporter.cs" />
     <Compile Include="FileImporterException.cs" />

BIN
SketchAssistant/SketchAssistantWPF/StaticLibMotors.dll


BIN
SketchAssistant/optitrack_setup.ttp