Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ros-msgs-arduino-lib
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CdF
CdF 2020-2021
modules
libraries
communication
messages
ros-msgs-arduino-lib
Commits
1057541f
Commit
1057541f
authored
4 years ago
by
Compiler bot
Browse files
Options
Downloads
Patches
Plain Diff
autogen lib 2021-06-28T22:38:17+02:00
parent
78be5ae7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ctrlpan_msgs/alim_stat.h
+58
-0
58 additions, 0 deletions
ctrlpan_msgs/alim_stat.h
with
58 additions
and
0 deletions
ctrlpan_msgs/alim_stat.h
0 → 100644
+
58
−
0
View file @
1057541f
#ifndef _ROS_ctrlpan_msgs_alim_stat_h
#define _ROS_ctrlpan_msgs_alim_stat_h
#include
<stdint.h>
#include
<string.h>
#include
<stdlib.h>
#include
"ros/msg.h"
namespace
ctrlpan_msgs
{
class
alim_stat
:
public
ros
::
Msg
{
public:
typedef
float
_voltage_12_type
;
_voltage_12_type
voltage_12
;
typedef
float
_voltage_5_type
;
_voltage_5_type
voltage_5
;
typedef
float
_current_12_type
;
_current_12_type
current_12
;
typedef
float
_current_5_type
;
_current_5_type
current_5
;
alim_stat
()
:
voltage_12
(
0
),
voltage_5
(
0
),
current_12
(
0
),
current_5
(
0
)
{
}
virtual
int
serialize
(
unsigned
char
*
outbuffer
)
const
override
{
int
offset
=
0
;
offset
+=
serializeAvrFloat64
(
outbuffer
+
offset
,
this
->
voltage_12
);
offset
+=
serializeAvrFloat64
(
outbuffer
+
offset
,
this
->
voltage_5
);
offset
+=
serializeAvrFloat64
(
outbuffer
+
offset
,
this
->
current_12
);
offset
+=
serializeAvrFloat64
(
outbuffer
+
offset
,
this
->
current_5
);
return
offset
;
}
virtual
int
deserialize
(
unsigned
char
*
inbuffer
)
override
{
int
offset
=
0
;
offset
+=
deserializeAvrFloat64
(
inbuffer
+
offset
,
&
(
this
->
voltage_12
));
offset
+=
deserializeAvrFloat64
(
inbuffer
+
offset
,
&
(
this
->
voltage_5
));
offset
+=
deserializeAvrFloat64
(
inbuffer
+
offset
,
&
(
this
->
current_12
));
offset
+=
deserializeAvrFloat64
(
inbuffer
+
offset
,
&
(
this
->
current_5
));
return
offset
;
}
virtual
const
char
*
getType
()
override
{
return
"ctrlpan_msgs/alim_stat"
;
};
virtual
const
char
*
getMD5
()
override
{
return
"106867c5bc529b0f5a207a4bf4612a99"
;
};
};
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
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