Skip to content

Commit e945dd7

Browse files
committed
Changed nodes to reflect SOM1 and added command to configure AppSysManager
1 parent b625d6f commit e945dd7

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

Modules/FlightPlan/Command.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public static class CommandTypeConstants
1313
{
1414
public const string TriggerCapture = "TRIGGER_CAPTURE";
1515
public const string TriggerPipeline = "TRIGGER_PIPELINE";
16+
public const string ConfigureSom = "CONFIGURE_SOM";
17+
1618
}
1719

1820
/// <summary>
@@ -113,7 +115,8 @@ public class CommandJsonConverter : JsonConverter<Command>
113115
{
114116
CommandTypeConstants.TriggerCapture => JsonSerializer.Deserialize<TriggerCaptureCommand>(root.GetRawText(), options),
115117
CommandTypeConstants.TriggerPipeline => JsonSerializer.Deserialize<TriggerPipelineCommand>(root.GetRawText(), options),
116-
_ => throw new JsonException($"Unknown commandType '{commandType}'. Supported types: '{CommandTypeConstants.TriggerCapture}', '{CommandTypeConstants.TriggerPipeline}'")
118+
CommandTypeConstants.ConfigureSom => JsonSerializer.Deserialize<ConfigureSomCommand>(root.GetRawText(), options),
119+
_ => throw new JsonException($"Unknown commandType '{commandType}'. Supported types: '{CommandTypeConstants.TriggerCapture}', '{CommandTypeConstants.TriggerPipeline}', '{CommandTypeConstants.ConfigureSom}'")
117120
};
118121
}
119122
catch (JsonException)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace SatOps.Modules.FlightPlan.Commands
2+
{
3+
public class ConfigureSomCommand : Command
4+
{
5+
public override string CommandType => CommandTypeConstants.ConfigureSom;
6+
private const int AppSysNode = 5421;
7+
8+
public override Task<List<string>> CompileToCsh()
9+
{
10+
return Task.FromResult(new List<string>
11+
{
12+
$"set mng_dipp 5423 -n {AppSysNode}",
13+
$"set mng_camera_control 5422 -n {AppSysNode}"
14+
});
15+
}
16+
}
17+
}

Modules/FlightPlan/commands/TriggerCaptureCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class TriggerCaptureCommand : Command
1616
public override bool RequiresExecutionTimeCalculation => true;
1717

1818
// Hardcoded CSP node address for the Camera Controller.
19-
private const int CameraControllerNode = 2;
19+
private const int CameraControllerNode = 5422;
2020

2121
[Required(ErrorMessage = "CaptureLocation is required")]
2222
[JsonPropertyName("captureLocation")]

Modules/FlightPlan/commands/TriggerPipelineCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class TriggerPipelineCommand : Command
1010
{
1111
public override string CommandType => CommandTypeConstants.TriggerPipeline;
1212

13-
private const int DippNode = 162;
13+
private const int DippNode = 5423;
1414

1515
[Required(ErrorMessage = "Mode is required")]
1616
[Range(0, int.MaxValue, ErrorMessage = "Mode must be a non-negative integer")]

0 commit comments

Comments
 (0)