Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOAAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Martin Streitenberger
SOAAP
Commits
800a1868
Commit
800a1868
authored
2 years ago
by
RobertPatzke
Browse files
Options
Downloads
Patches
Plain Diff
update 20221104
parent
aa690aae
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/environment/IntrfMeas.h
+69
-0
69 additions, 0 deletions
libraries/environment/IntrfMeas.h
with
69 additions
and
0 deletions
libraries/environment/IntrfMeas.h
0 → 100644
+
69
−
0
View file @
800a1868
//-----------------------------------------------------------------------------
// Thema: Social Manufacturing Network / Development Environment
// Datei: IntrfMeas.h
// Editor: Robert Patzke
// URI/URL: www.mfp-portal.de
//-----------------------------------------------------------------------------
// Lizenz: CC-BY-SA (wikipedia: Creative Commons)
// Datum: 23. September 2022
//
// Eine Schnittstelle zur Messwererfassung
//
#ifndef IntrfMeas_h
#define IntrfMeas_h
// ----------------------------------------------------------------------------
#include
"arduinoDefs.h"
#define signX 0x01
#define deltaSignX 0x02
#define signY 0x04
#define deltaSignY 0x08
#define signZ 0x10
#define deltaSignZ 0x20
#define signAll 0x40
#define deltaSignAll 0x80
#define chkSignAll 0x15
typedef
struct
_TriFloat
{
float
x
;
float
y
;
float
z
;
}
TriFloat
,
*
TriFloatPtr
;
typedef
struct
_TriSenseSigns
{
byte
signsAcc
;
byte
signsGyro
;
byte
signsMag
;
}
TriSenseSigns
,
*
TriSenseSignsPtr
;
class
IntrfMeas
{
public:
// --------------------------------------------------------------------------
// Konfigurationen
// --------------------------------------------------------------------------
//
// --------------------------------------------------------------------------
// Steuerfunktionen
// --------------------------------------------------------------------------
//
// --------------------------------------------------------------------------
// Datenzugriffe
// --------------------------------------------------------------------------
//
virtual
void
sync
(
int
type
,
int
code
);
virtual
bool
available
(
int
type
,
int
code
);
virtual
int
getValues
(
int
type
,
int
code
,
void
*
dataPtr
);
virtual
byte
getSigns
(
int
type
,
int
code
);
};
// ----------------------------------------------------------------------------
#endif // IntrfMeas_h
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