Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pousseseringue-arduino
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
FabLAAS
PousseSeringue
pousseseringue-arduino
Commits
e753a763
Commit
e753a763
authored
1 year ago
by
Malaurie Bernard
Browse files
Options
Downloads
Patches
Plain Diff
The class SyringeFilled must inherit of class motor, but syringe dont need to
parent
1f0d2ca6
No related branches found
Branches containing commit
No related tags found
1 merge request
!17
Malaurie's work on UI + CLI interface + AccelStepper interface
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
syringe.h
+18
-18
18 additions, 18 deletions
syringe.h
syringefilled.h
+1
-1
1 addition, 1 deletion
syringefilled.h
with
19 additions
and
19 deletions
syringe.h
+
18
−
18
View file @
e753a763
...
...
@@ -5,30 +5,30 @@
#include
<ArduinoJson.h>
class
Syringe
:
public
Motor
class
Syringe
{
private
:
private
:
float
_total_volume_mL
;
float
_internal_diameter_mm
;
int
_id
;
float
_total_volume_mL
;
float
_internal_diameter_mm
;
int
_id
;
public
:
//SET METHODS
void
set_total_volume_mL
(
float
total_volume_mL
);
void
set_internal_diameter_mm
(
float
internal_diameter_mm
);
void
set_id
(
int
id
);
public
:
//SET METHODS
void
set_total_volume_mL
(
float
total_volume_mL
);
void
set_internal_diameter_mm
(
float
internal_diameter_mm
);
void
set_id
(
int
id
);
//GET METHODS
float
get_total_volume_mL
();
float
get_internal_diameter_mm
();
int
get_id
();
//GET METHODS
float
get_total_volume_mL
();
float
get_internal_diameter_mm
();
int
get_id
();
//JSON DOCUMENT
StaticJsonDocument
<
200
>
SyringeJSON
;
//200 = RAM allocated to this document
//JSON DOCUMENT
StaticJsonDocument
<
200
>
SyringeJSON
;
//200 = RAM allocated to this document
void
setupJsonSyringe
(
float
total_volume_mL
,
float
internal_diameter_mm
,
int
id
);
void
setupJsonSyringe
(
float
total_volume_mL
,
float
internal_diameter_mm
,
int
id
);
};
...
...
This diff is collapsed.
Click to expand it.
syringefilled.h
+
1
−
1
View file @
e753a763
...
...
@@ -3,7 +3,7 @@
#include
"syringe.h"
#include
<ArduinoJson.h>
class
SyringeFilled
class
SyringeFilled
:
Motor
{
...
...
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