iCub-main
Loading...
Searching...
No Matches
icub-main
src
libraries
icubmod
embObjMotionControl
measuresConverter.cpp
Go to the documentation of this file.
1
// -*- Mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
/*
4
* Copyright (C) 2012 iCub Facility, Istituto Italiano di Tecnologia
5
* Authors: Valentina Gaggero
6
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
7
*
8
*/
9
10
#include "
measuresConverter.h
"
11
12
13
14
measureConvFactors::measureConvFactors
(
int
numofjoints)
15
{
16
angleToEncoder
=
new
double
[numofjoints];
17
dutycycleToPWM
=
new
double
[numofjoints];
18
ampsToSensor
=
new
double
[numofjoints];
19
newtonsToSensor
=
new
double
[numofjoints];
20
bemf2raw
=
new
double
[numofjoints];
21
ktau2raw
=
new
double
[numofjoints];
22
}
23
24
measureConvFactors::~measureConvFactors
()
25
{
26
if
(
angleToEncoder
)
delete
[]
angleToEncoder
;
27
if
(
dutycycleToPWM
)
delete
[]
dutycycleToPWM
;
28
if
(
ampsToSensor
)
delete
[]
ampsToSensor
;
29
if
(
newtonsToSensor
)
delete
[]
newtonsToSensor
;
30
if
(
bemf2raw
)
delete
[]
bemf2raw
;
31
if
(
ktau2raw
)
delete
[]
ktau2raw
;
32
33
angleToEncoder
=
nullptr
;
34
dutycycleToPWM
=
nullptr
;
35
ampsToSensor
=
nullptr
;
36
newtonsToSensor
=
nullptr
;
37
ktau2raw
=
nullptr
;
38
bemf2raw
=
nullptr
;
39
}
40
measureConvFactors::newtonsToSensor
double * newtonsToSensor
Definition
measuresConverter.h:52
measureConvFactors::ktau2raw
double * ktau2raw
Definition
measuresConverter.h:54
measureConvFactors::measureConvFactors
measureConvFactors(int numofjoints)
Definition
measuresConverter.cpp:14
measureConvFactors::~measureConvFactors
~measureConvFactors()
Definition
measuresConverter.cpp:24
measureConvFactors::angleToEncoder
double * angleToEncoder
Definition
measuresConverter.h:49
measureConvFactors::bemf2raw
double * bemf2raw
Definition
measuresConverter.h:53
measureConvFactors::dutycycleToPWM
double * dutycycleToPWM
Definition
measuresConverter.h:50
measureConvFactors::ampsToSensor
double * ampsToSensor
Definition
measuresConverter.h:51
measuresConverter.h
Generated on Wed Dec 18 2024 16:34:47 for iCub-main by
1.9.8