Skip to content

Commit 1c67633

Browse files
authored
Merge branch 'nasa:devel' into devel
2 parents cde9779 + 25c133f commit 1c67633

File tree

6 files changed

+10
-33
lines changed

6 files changed

+10
-33
lines changed

.github/actions/spelling/expect.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jpl
4646
JSO
4747
jsonable
4848
kevin
49+
linux
4950
lld
5051
Makefiles
5152
mallocator

src/fprime/cookiecutter_templates/cookiecutter-fprime-deployment/{{cookiecutter.deployment_name}}/Top/instances.fpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ module {{cookiecutter.deployment_name}} {
1313
# Active component instances
1414
# ----------------------------------------------------------------------
1515

16-
instance blockDrv: Drv.BlockDriver base id 0x0100 \
17-
queue size Default.QUEUE_SIZE \
18-
stack size Default.STACK_SIZE \
19-
priority 140
20-
2116
instance rateGroup1: Svc.ActiveRateGroup base id 0x0200 \
2217
queue size Default.QUEUE_SIZE \
2318
stack size Default.STACK_SIZE \
@@ -130,4 +125,6 @@ module {{cookiecutter.deployment_name}} {
130125
instance fprimeRouter: Svc.FprimeRouter base id 0x4D00
131126

132127
instance version: Svc.Version base id 0x4E00
128+
129+
instance linuxTimer: Svc.LinuxTimer base id 0x4F00
133130
}

src/fprime/cookiecutter_templates/cookiecutter-fprime-deployment/{{cookiecutter.deployment_name}}/Top/topology.fpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ module {{cookiecutter.deployment_name}} {
2424
# ----------------------------------------------------------------------
2525

2626
instance $health
27-
instance blockDrv
2827
instance tlmSend
2928
instance cmdDisp
3029
instance cmdSeq
@@ -51,6 +50,7 @@ module {{cookiecutter.deployment_name}} {
5150
instance textLogger
5251
instance systemResources
5352
instance version
53+
instance linuxTimer
5454

5555
# ----------------------------------------------------------------------
5656
# Pattern graph specifiers
@@ -113,8 +113,8 @@ module {{cookiecutter.deployment_name}} {
113113
}
114114

115115
connections RateGroups {
116-
# Block driver
117-
blockDrv.CycleOut -> rateGroupDriver.CycleIn
116+
# LinuxTimer to drive rate group
117+
linuxTimer.CycleOut -> rateGroupDriver.CycleIn
118118

119119
# Rate group 1
120120
rateGroupDriver.CycleOut[Ports_RateGroups.rateGroup1] -> rateGroup1.CycleIn
@@ -130,8 +130,7 @@ module {{cookiecutter.deployment_name}} {
130130
# Rate group 3
131131
rateGroupDriver.CycleOut[Ports_RateGroups.rateGroup3] -> rateGroup3.CycleIn
132132
rateGroup3.RateGroupMemberOut[0] -> $health.Run
133-
rateGroup3.RateGroupMemberOut[1] -> blockDrv.Sched
134-
rateGroup3.RateGroupMemberOut[2] -> bufferManager.schedIn
133+
rateGroup3.RateGroupMemberOut[1] -> bufferManager.schedIn
135134
}
136135

137136
connections Sequencer {
@@ -169,7 +168,7 @@ module {{cookiecutter.deployment_name}} {
169168
}
170169

171170
connections {{cookiecutter.deployment_name}} {
172-
# Add here connections to user-defined components
171+
# Add connections here to user-defined components
173172
}
174173

175174
}

src/fprime/cookiecutter_templates/cookiecutter-fprime-deployment/{{cookiecutter.deployment_name}}/Top/{{cookiecutter.deployment_name}}Packets.fppi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ telemetry packets {{cookiecutter.deployment_name}}Packets {
3737
{{cookiecutter.deployment_name}}.fileManager.Errors
3838
}
3939

40-
packet DriveTlm id 3 group 1 {
41-
{{cookiecutter.deployment_name}}.blockDrv.BD_Cycles
42-
}
43-
4440
packet SystemRes1 id 4 group 2 {
4541
{{cookiecutter.deployment_name}}.systemResources.MEMORY_TOTAL
4642
{{cookiecutter.deployment_name}}.systemResources.MEMORY_USED

src/fprime/cookiecutter_templates/cookiecutter-fprime-deployment/{{cookiecutter.deployment_name}}/Top/{{cookiecutter.deployment_name}}Topology.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ enum TopologyConstants {
5858

5959
// Ping entries are autocoded, however; this code is not properly exported. Thus, it is copied here.
6060
Svc::Health::PingEntry pingEntries[] = {
61-
{PingEntries::{{cookiecutter.deployment_name}}_blockDrv::WARN, PingEntries::{{cookiecutter.deployment_name}}_blockDrv::FATAL, "blockDrv"},
6261
{PingEntries::{{cookiecutter.deployment_name}}_tlmSend::WARN, PingEntries::{{cookiecutter.deployment_name}}_tlmSend::FATAL, "chanTlm"},
6362
{PingEntries::{{cookiecutter.deployment_name}}_cmdDisp::WARN, PingEntries::{{cookiecutter.deployment_name}}_cmdDisp::FATAL, "cmdDisp"},
6463
{PingEntries::{{cookiecutter.deployment_name}}_cmdSeq::WARN, PingEntries::{{cookiecutter.deployment_name}}_cmdSeq::FATAL, "cmdSeq"},
@@ -183,25 +182,11 @@ Os::Mutex cycleLock;
183182
volatile bool cycleFlag = true;
184183

185184
void startSimulatedCycle(Fw::TimeInterval interval) {
186-
cycleLock.lock();
187-
bool cycling = cycleFlag;
188-
cycleLock.unLock();
189-
190-
// Main loop
191-
while (cycling) {
192-
{{cookiecutter.deployment_name}}::blockDrv.callIsr();
193-
Os::Task::delay(interval);
194-
195-
cycleLock.lock();
196-
cycling = cycleFlag;
197-
cycleLock.unLock();
198-
}
185+
linuxTimer.startTimer(interval.getSeconds()*1000+interval.getUSeconds()/1000);
199186
}
200187

201188
void stopSimulatedCycle() {
202-
cycleLock.lock();
203-
cycleFlag = false;
204-
cycleLock.unLock();
189+
linuxTimer.quit();
205190
}
206191

207192
void teardownTopology(const TopologyState& state) {

src/fprime/cookiecutter_templates/cookiecutter-fprime-deployment/{{cookiecutter.deployment_name}}/Top/{{cookiecutter.deployment_name}}TopologyDefs.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#ifndef {{cookiecutter.__deployment_name_upper}}_{{cookiecutter.__deployment_name_upper}}TOPOLOGYDEFS_HPP
77
#define {{cookiecutter.__deployment_name_upper}}_{{cookiecutter.__deployment_name_upper}}TOPOLOGYDEFS_HPP
88

9-
#include "Drv/BlockDriver/BlockDriver.hpp"
109
#include "Fw/Types/MallocAllocator.hpp"
1110
#include "{{cookiecutter.__include_path_prefix}}{{cookiecutter.deployment_name}}/Top/FppConstantsAc.hpp"
1211
#include "Svc/FramingProtocol/FprimeProtocol.hpp"

0 commit comments

Comments
 (0)