Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b213368
Added training build.
mbenson1 May 3, 2022
d75fe22
Added CI and TO to training build.
mbenson1 May 4, 2022
a1090a0
Changed training YAMCS environment to use ground time.
mbenson1 May 4, 2022
9458c8c
Added CI, a term.cfg file, and the correct Main display to the traini…
mbenson1 May 4, 2022
2ca768f
Fixed the color of the reset button on the CFE-ES display
mbenson1 May 4, 2022
4a023a6
CI is working for training build now
mbenson1 May 4, 2022
133b805
Fixed the StartApp display.
mbenson1 May 6, 2022
c46945a
Added MFA to startup script.
mbenson1 May 7, 2022
9006af5
initial commit of my first app in git
shahedrahim May 11, 2022
0f3d29e
Barebones FSW
shahedrahim May 12, 2022
8a48216
My First App Added to Flight Software
shahedrahim May 12, 2022
ff87372
code beautified
shahedrahim May 14, 2022
b1eb4eb
Cleaner Code
shahedrahim May 15, 2022
fcdb228
Not sending Loop messages
shahedrahim May 16, 2022
f64ada6
wakeup event working
shahedrahim May 18, 2022
47a2573
config table loading working
shahedrahim May 19, 2022
fa9aab7
telemetry working
shahedrahim May 21, 2022
b6599a1
able to send Noop and Reset from Commander
shahedrahim May 26, 2022
97c3847
commented
shahedrahim May 27, 2022
72412e3
update config table from yamcs
shahedrahim May 28, 2022
9161019
fixed events
shahedrahim May 28, 2022
9e58910
added comments
shahedrahim May 28, 2022
425f0a8
Added Display to Set Config Message
shahedrahim May 29, 2022
b0ffbd4
dump config file working
shahedrahim May 29, 2022
b7691aa
type casting formatting issue removed
shahedrahim May 29, 2022
857c22b
math library added
shahedrahim May 31, 2022
7efdfcb
removed math lib
shahedrahim May 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build/**
venv
*.class
*__pycache__
.vscode
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,21 @@ workspace-sitl::
@echo 'Generating Simlink XTCE'
@core/tools/auto-yamcs/src/generate_xtce.sh ${PWD}/build/obc/simlink/target/wh_defs.yaml ${PWD}/build/obc/simlink/target/wh_defs.db ${PWD}/build/obc/sitl_commander_workspace/mdb/simlink.xml



workspace-training::
@echo 'Generating ground tools data.'
@make -C build/training/target ground-tools
@echo 'Adding XTCE configuration to registries.'
@yaml-merge core/base/tools/commander/xtce_config.yaml build/training/target/wh_defs.yaml --overwrite build/training/target/wh_defs.yaml
@echo 'Generating registry.'
@rm -Rf build/training/commander_workspace >/dev/null
@mkdir -p build/training/commander_workspace/etc
@python3 core/base/tools/config/yaml_path_merger.py --yaml_output build/training/commander_workspace/etc/registry.yaml --yaml_input build/training/target/wh_defs.yaml --yaml_path /modules/training
@echo 'Generating Commander workspace.'
@python3 core/base/tools/commander/generate_workspace.py build/training/commander_workspace/etc/registry.yaml build/training/commander_workspace/
@echo 'Generating XTCE'
@core/tools/auto-yamcs/src/generate_xtce.sh ${PWD}/build/training/target/wh_defs.yaml ${PWD}/build/training/target/wh_defs.db ${PWD}/build/training/commander_workspace/mdb/training.xml


obc-sitl:: obc/ppd/sitl obc/cpd/sitl obc/simlink
Expand Down
358 changes: 358 additions & 0 deletions apps/mfa/cdr/Main.bob
Original file line number Diff line number Diff line change
@@ -0,0 +1,358 @@
<?xml version="1.0" encoding="UTF-8"?>
<display version="2.0.0">
<name>($(CPUID)) MFA</name>
<macros>
<APP>mfa</APP>
<include_parent_macros>true</include_parent_macros>
<REGISTRY_PATH>/modules/$(CPUID)/modules/apps/modules/$(APP)</REGISTRY_PATH>
<CPUID>{{ cpu_id }}</CPUID>
@BUILDLINER_CDR_MACRO_BLOCK@
@BUILDLINER_CDR_MACRO_BLOCK_CUSTOM@
</macros>
<width>700</width>
<height>550</height>
<background_color>
<color name="Display Background" red="255" green="255" blue="255">
</color>
</background_color>
<actions>
</actions>
<grid_step_x>6</grid_step_x>
<grid_step_y>6</grid_step_y>
<widget type="label" version="2.0.0">
<name>Label_49</name>
<text>($(CPUID)) My First App</text>
<x>19</x>
<y>10</y>
<width>166</width>
<font>
<font name="Default Bold" family="Liberation Sans" style="BOLD" size="14.0">
</font>
</font>
<horizontal_alignment>1</horizontal_alignment>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="group" version="2.0.0">
<name>Commanding</name>
<x>19</x>
<y>36</y>
<width>318</width>
<height>240</height>
<font>
<font family="Liberation Sans" style="BOLD" size="14.0">
</font>
</font>
<widget type="action_button" version="3.0.0">
<name>NoOp_2</name>
<actions>
<action type="execute">
<script file="EmbeddedJs">
<text><![CDATA[importPackage(com.windhoverlabs.yamcs.script);

Yamcs.issueCommand(widget, '/cfs/$(CPUID)/apps/mfa/Noop', {});]]></text>
</script>
</action>
</actions>
<text>NoOp</text>
<x>5</x>
<y>57</y>
<width>140</width>
<height>20</height>
<foreground_color>
<color red="255" green="255" blue="255">
</color>
</foreground_color>
<background_color>
<color red="34" green="45" blue="75">
</color>
</background_color>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
<widget type="action_button" version="3.0.0">
<name>NoOp_5</name>
<actions>
<action type="execute">
<script file="EmbeddedJs">
<text><![CDATA[importPackage(com.windhoverlabs.yamcs.script);

Yamcs.issueCommand(widget, '/cfs/$(CPUID)/apps/mfa/Reset', {});]]></text>
</script>
</action>
</actions>
<text>Reset</text>
<x>5</x>
<y>77</y>
<width>140</width>
<height>20</height>
<foreground_color>
<color red="255" green="255" blue="255">
</color>
</foreground_color>
<background_color>
<color red="34" green="45" blue="75">
</color>
</background_color>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
<widget type="textupdate" version="2.0.0">
<name>Text Update_5</name>
<pv_name>/cfs/$(CPUID)/apps/mfa/MFA_HK_TLM_MID.Commands</pv_name>
<x>107</x>
<y>7</y>
<width>98</width>
<height>18</height>
<background_color>
<color red="255" green="255" blue="255">
</color>
</background_color>
<precision>0</precision>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_width>1</border_width>
</widget>
<widget type="label" version="2.0.0">
<name>Label_2</name>
<text>Cmd Count</text>
<x>10</x>
<y>6</y>
<width>79</width>
<horizontal_alignment>2</horizontal_alignment>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="label" version="2.0.0">
<name>Label_3</name>
<text>Err Count</text>
<x>26</x>
<y>25</y>
<width>63</width>
<horizontal_alignment>2</horizontal_alignment>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_color>
<color red="0" green="128" blue="255">
</color>
</border_color>
</widget>
<widget type="textupdate" version="2.0.0">
<name>Text Update_6</name>
<pv_name>/cfs/$(CPUID)/apps/mfa/MFA_HK_TLM_MID.CmdErrors</pv_name>
<x>107</x>
<y>26</y>
<width>98</width>
<height>18</height>
<background_color>
<color red="255" green="255" blue="255">
</color>
</background_color>
<precision>0</precision>
<vertical_alignment>1</vertical_alignment>
<wrap_words>false</wrap_words>
<actions>
</actions>
<border_width>1</border_width>
</widget>
<widget type="embedded" version="2.0.0">
<name>Embedded Display_2</name>
<file>$(CMD_MANAGEMENT_CONTAINER)</file>
<x>5</x>
<y>97</y>
<width>140</width>
<height>100</height>
</widget>
</widget>
<widget type="group" version="2.0.0">
<name>Telemetry</name>
<x>19</x>
<y>276</y>
<width>318</width>
<height>126</height>
<font>
<font family="Liberation Sans" style="BOLD" size="14.0">
</font>
</font>
<widget type="embedded" version="2.0.0">
<name>Embedded Display_3</name>
<file>TO_TlmManagement.bob</file>
<x>5</x>
<y>26</y>
<width>140</width>
<height>60</height>
</widget>
</widget>
<widget type="group" version="2.0.0">
<name>Miscellaneous</name>
<x>337</x>
<y>216</y>
<height>186</height>
<font>
<font family="Liberation Sans" style="BOLD" size="14.0">
</font>
</font>
<widget type="action_button" version="3.0.0">
<name>AppControl_1</name>
<actions>
<action type="open_display">
<file>$(APP_CONTROL_TEMPLATE)</file>
<target>tab</target>
<description>Open Display</description>
</action>
</actions>
<text>App Control</text>
<x>6</x>
<y>6</y>
<width>175</width>
<height>20</height>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
<widget type="action_button" version="3.0.0">
<name>Action Button_5</name>
<actions>
<action type="open_display">
<file>SendDiag.bob</file>
<target>tab</target>
</action>
</actions>
<text>Diagnostic</text>
<x>6</x>
<y>26</y>
<width>175</width>
<height>20</height>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
<widget type="action_button" version="3.0.0">
<name>Events_1</name>
<actions>
<action type="open_display">
<file>EventControl.bob</file>
<target>tab</target>
<description>Open Display</description>
</action>
</actions>
<text>Event Filtering</text>
<x>6</x>
<y>46</y>
<width>175</width>
<height>20</height>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
<widget type="action_button" version="3.0.0">
<name>Action Button_3</name>
<actions>
<action type="open_display">
<file>QueryPriorityQueue.opi</file>
<target>tab</target>
</action>
</actions>
<text>Query Priority Queue</text>
<x>6</x>
<y>66</y>
<width>175</width>
<height>20</height>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
<widget type="action_button" version="3.0.0">
<name>Action Button_2</name>
<actions>
<action type="open_display">
<file>QueryOutputChannel.opi</file>
<target>tab</target>
</action>
</actions>
<text>Query Output Channel</text>
<x>6</x>
<y>86</y>
<width>175</width>
<height>20</height>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
<widget type="action_button" version="3.0.0">
<name>AppControl_2</name>
<actions>
<action type="execute">
<script file="EmbeddedJs">
<text><![CDATA[importPackage(com.windhoverlabs.yamcs.script);
importPackage(Packages.org.csstudio.display.builder.runtime.script);
importPackage(org.csstudio.opibuilder.runmode)

var opi_to_open_path = FileUtil.workspacePathToSysPath(display.getMacroValue("Sch_Table_TEMPLATE"));
var macroInput = DataUtil.createMacrosInput(true);

ScriptUtil.openOPI(display.getWidget("AppControl"), opi_to_open_path, RunModeService.DisplayMode.REPLACE, macroInput );]]></text>
</script>
</action>
</actions>
<text>Sch Table</text>
<x>6</x>
<y>106</y>
<width>174</width>
<height>20</height>
<tooltip>$(actions)</tooltip>
<border_alarm_sensitive>false</border_alarm_sensitive>
</widget>
</widget>
<widget type="group" version="2.0.0">
<name>Action</name>
<x>337</x>
<y>36</y>
<height>168</height>
<font>
<font family="Liberation Sans" style="BOLD" size="14.0">
</font>
</font>
<widget type="action_button" version="3.0.0">
<name>SetMessage</name>
<actions>
<action type="open_display">
<file>SetMessage.opi</file>
<target>tab</target>
<description>Open Display</description>
</action>
</actions>
<text>Set Config Message</text>
<x>11</x>
<y>6</y>
<width>170</width>
<tooltip>$(actions)</tooltip>
</widget>
<widget type="action_button" version="3.0.0">
<name>SaveConfig</name>
<actions>
<action type="open_display">
<file>SaveConfigFile.opi</file>
<target>tab</target>
<description>Open Display</description>
</action>
</actions>
<text>Save Config File</text>
<x>11</x>
<y>48</y>
<width>170</width>
<tooltip>$(actions)</tooltip>
</widget>
</widget>
</display>
Loading