Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
HRE Test stand On-Board Software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Old Rockets
HRE Test stand On-Board Software
Commits
e3d4f3e9
Commit
e3d4f3e9
authored
3 years ago
by
Alberto Nidasio
Browse files
Options
Downloads
Patches
Plain Diff
[Thermocouples] Tested driver without success
parent
d160e166
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#3601
passed
3 years ago
Stage: build-release
Stage: build-debug
Stage: lint
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.vscode/settings.json
+4
-2
4 additions, 2 deletions
.vscode/settings.json
skyward-boardcore
+1
-1
1 addition, 1 deletion
skyward-boardcore
src/tests/test-thermocouples.cpp
+30
-21
30 additions, 21 deletions
src/tests/test-thermocouples.cpp
with
35 additions
and
24 deletions
.vscode/settings.json
+
4
−
2
View file @
e3d4f3e9
...
@@ -112,6 +112,7 @@
...
@@ -112,6 +112,7 @@
"Alain"
,
"Alain"
,
"ARPE"
,
"ARPE"
,
"BDTR"
,
"BDTR"
,
"Boardcore"
,
"Carlucci"
,
"Carlucci"
,
"CCER"
,
"CCER"
,
"CCMR"
,
"CCMR"
,
...
@@ -151,7 +152,8 @@
...
@@ -151,7 +152,8 @@
"USART"
,
"USART"
,
"WWDG"
,
"WWDG"
,
"WWDGEN"
,
"WWDGEN"
,
"Xbee"
"Xbee"
,
"Zangari"
],
],
"C_Cpp.errorSquiggles"
:
"Disabled"
,
"C_Cpp.errorSquiggles"
:
"Disabled"
,
"cSpell.enabled"
:
true
"cSpell.enabled"
:
true
...
...
This diff is collapsed.
Click to expand it.
skyward-boardcore
@
5e2af801
Compare
e61a8fc6
...
5e2af801
Subproject commit
e61a8fc6d279c0681434c3dca161215a3758916c
Subproject commit
5e2af801ff9093f2d93c469a170618d67ba6bdca
This diff is collapsed.
Click to expand it.
src/tests/test-thermocouples.cpp
+
30
−
21
View file @
e3d4f3e9
...
@@ -21,12 +21,14 @@
...
@@ -21,12 +21,14 @@
*/
*/
#include
<miosix.h>
#include
<miosix.h>
#include
<scheduler/TaskScheduler.h>
#include
<sensors/MAX31855/MAX31855.h>
#include
<sensors/MAX31855/MAX31855.h>
#include
<sensors/MAX6675/MAX6675.h>
using
namespace
miosix
;
using
namespace
miosix
;
using
namespace
Boardcore
;
using
namespace
Boardcore
;
constexpr
uint32_t
THERMOCOUPLE_SAMPLE_PERIOD
=
2
50
;
constexpr
uint32_t
THERMOCOUPLE_SAMPLE_PERIOD
=
1
50
;
SPIBus
spiBus
(
SPI5
);
SPIBus
spiBus
(
SPI5
);
...
@@ -37,9 +39,20 @@ MAX31855 thermocouple4(spiBus, sensors::max31855::cs4::getPin());
...
@@ -37,9 +39,20 @@ MAX31855 thermocouple4(spiBus, sensors::max31855::cs4::getPin());
MAX31855
thermocouple5
(
spiBus
,
sensors
::
max31855
::
cs5
::
getPin
());
MAX31855
thermocouple5
(
spiBus
,
sensors
::
max31855
::
cs5
::
getPin
());
MAX31855
thermocouple6
(
spiBus
,
sensors
::
max31855
::
cs6
::
getPin
());
MAX31855
thermocouple6
(
spiBus
,
sensors
::
max31855
::
cs6
::
getPin
());
void
sample
();
int
main
()
int
main
()
{
{
TaskScheduler
scheduler
;
scheduler
.
addTask
(
sample
,
THERMOCOUPLE_SAMPLE_PERIOD
);
scheduler
.
start
();
while
(
true
)
while
(
true
)
Thread
::
sleep
(
1000
);
}
void
sample
()
{
{
thermocouple1
.
sample
();
thermocouple1
.
sample
();
thermocouple2
.
sample
();
thermocouple2
.
sample
();
...
@@ -56,8 +69,4 @@ int main()
...
@@ -56,8 +69,4 @@ int main()
thermocouple4
.
getLastSample
().
temperature
,
thermocouple4
.
getLastSample
().
temperature
,
thermocouple5
.
getLastSample
().
temperature
,
thermocouple5
.
getLastSample
().
temperature
,
thermocouple6
.
getLastSample
().
temperature
);
thermocouple6
.
getLastSample
().
temperature
);
Thread
::
sleep
(
THERMOCOUPLE_SAMPLE_PERIOD
);
}
return
0
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment