Skip to content

Commit

Permalink
Merge pull request #41 from joshreed13/develop
Browse files Browse the repository at this point in the history
Added More New Features for 2016
  • Loading branch information
joshreed13 committed May 17, 2016
2 parents cc560d5 + 36e2b20 commit a68fbff
Show file tree
Hide file tree
Showing 31 changed files with 1,407 additions and 266 deletions.
6 changes: 6 additions & 0 deletions RED/Models/ArmControllerModeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ namespace RED.Models
internal class ArmControllerModeModel
{
internal int CurrentEndEffectorMode;
internal float AngleJ1;
internal float AngleJ2;
internal float AngleJ3;
internal float AngleJ4;
internal float AngleJ5;
internal float AngleJ6;
}
}
13 changes: 13 additions & 0 deletions RED/Models/CameraMuxModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RED.Models
{
public class CameraMuxModel
{
internal byte MuxIndex;
}
}
2 changes: 2 additions & 0 deletions RED/Models/ControlCenterModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ public class ControlCenterModel
internal SensorCombinedViewModel _sensorCombined;
internal GimbalControllerModeViewModel _gimbalControllerMode;
internal DropBaysViewModel _dropBays;
internal PowerViewModel _power;
internal CameraMuxViewModel _cameraMux;
}
}
1 change: 1 addition & 0 deletions RED/Models/GimbalModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace RED.Models
{
public class GimbalModel
{
internal int gimbalIndex;
internal int speedLimit;
}
}
34 changes: 34 additions & 0 deletions RED/Models/PowerModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RED.Models
{
public class PowerModel
{
internal float Motor1Current;
internal float Motor2Current;
internal float Motor3Current;
internal float Motor4Current;
internal float Motor5Current;
internal float Motor6Current;
internal float Motor7Current;
internal float Motor8Current;
internal float Bus5VCurrent;
internal float Bus12VCurrent;
internal float InputVoltage;

internal float Cell1Voltage;
internal float Cell2Voltage;
internal float Cell3Voltage;
internal float Cell4Voltage;
internal float Cell5Voltage;
internal float Cell6Voltage;
internal float Cell7Voltage;
internal float Cell8Voltage;
internal float TotalPackCurrent;
internal float TotalPackVoltage;
}
}
15 changes: 10 additions & 5 deletions RED/Models/ScienceModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ namespace RED.Models
{
internal class ScienceModel
{
internal float Ph = 7.86f;
internal short Moisture;
internal float Temperature1Value;
internal float Temperature2Value;
internal float Temperature3Value;
internal float Temperature4Value;
internal float Moisture1Value;
internal float Moisture2Value;
internal float Moisture3Value;
internal float Moisture4Value;

internal short CCDPixelCount = 3684;
internal float CCDProgress = 0f;
internal System.Net.IPAddress CCDIPAddress;
internal ushort CCDPortNumber;
internal string CCDFilePath = Environment.CurrentDirectory;
internal bool CCDIsReceiving = false;
}
}
36 changes: 24 additions & 12 deletions RED/Properties/Settings.Designer.cs

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

9 changes: 6 additions & 3 deletions RED/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<Setting Name="DriveParabolicScaling" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="ScienceCCDPixelCount" Type="System.Int16" Scope="User">
<Value Profile="(Default)">3684</Value>
</Setting>
<Setting Name="ScienceCCDFilePath" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
Expand All @@ -29,5 +26,11 @@
<Setting Name="GPSBaseStationLocationLongitude" Type="System.Double" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="ScienceCCDPortNumber" Type="System.UInt16" Scope="User">
<Value Profile="(Default)">11001</Value>
</Setting>
<Setting Name="ScienceCCDIPAddress" Type="System.String" Scope="User">
<Value Profile="(Default)">192.168.1.135</Value>
</Setting>
</Settings>
</SettingsFile>
18 changes: 18 additions & 0 deletions RED/RED.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@
<Compile Include="Interfaces\INetworkTransportProtocol.cs" />
<Compile Include="Interfaces\ISequenceNumberProvider.cs" />
<Compile Include="Models\ArmControllerModeModel.cs" />
<Compile Include="Models\CameraMuxModel.cs" />
<Compile Include="Models\GimbalModel.cs" />
<Compile Include="Models\InputManagerModel.cs" />
<Compile Include="Models\DataRouterModel.cs" />
<Compile Include="Models\DriveControllerModeModel.cs" />
<Compile Include="Models\NetworkManagerModel.cs" />
<Compile Include="Models\PowerModel.cs" />
<Compile Include="Models\ScienceModel.cs" />
<Compile Include="Models\GPSModel.cs" />
<Compile Include="Models\SensorModel.cs" />
Expand All @@ -134,6 +136,7 @@
<Compile Include="Settings.cs" />
<Compile Include="Models\XboxControllerInputModel.cs" />
<Compile Include="ViewModels\ControlCenter\ArmControllerModeViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\CameraMuxViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\GimbalControllerModeViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\DropBaysViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\NetworkManagerViewModel.cs" />
Expand All @@ -144,6 +147,7 @@
<Compile Include="ViewModels\ControlCenter\DriveControllerModeViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\GPSViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\KeyboardInputViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\PowerViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\XboxControllerInputViewModel.cs" />
<Compile Include="ViewModels\ControlCenter\MetadataManager.cs" />
<Compile Include="ViewModels\ControlCenter\RoverProtocol.cs" />
Expand All @@ -166,6 +170,9 @@
<Compile Include="Views\ControlCenter\ArmControllerModeView.xaml.cs">
<DependentUpon>ArmControllerModeView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\ControlCenter\CameraMuxView.xaml.cs">
<DependentUpon>CameraMuxView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\ControlCenter\DriveControllerModeView.xaml.cs">
<DependentUpon>DriveControllerModeView.xaml</DependentUpon>
</Compile>
Expand All @@ -175,6 +182,9 @@
<Compile Include="Views\ControlCenter\DropBaysView.xaml.cs">
<DependentUpon>DropBaysView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\ControlCenter\PowerView.xaml.cs">
<DependentUpon>PowerView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\ControlCenter\ScienceView.xaml.cs">
<DependentUpon>ScienceView.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -207,6 +217,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\ControlCenter\CameraMuxView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\ControlCenter\DriveControllerModeView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down Expand Up @@ -244,6 +258,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>-->
<Page Include="Views\ControlCenter\PowerView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\ControlCenter\ScienceView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down
Loading

0 comments on commit a68fbff

Please sign in to comment.