-
- All Implemented Interfaces:
-
android.os.Parcelable
public class PolynomialConfigData implements Parcelable
Container class for holding Polynomial configuration data.
Used for transforming angles and rotations for the linkage.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intPOLYNOMIAL_DATA_SIZEpublic intidpublic intangleSensorIdpublic intaxispublic Array<double>coeffcientspublic final static Parcelable.Creator<PolynomialConfigData>CREATOR
-
Constructor Summary
Constructors Constructor Description PolynomialConfigData()Default constructor. PolynomialConfigData(ByteBuffer bb)Constructor that creates object based on the provided byte buffer. PolynomialConfigData(int id, int angleSensorId, int axis, double coeff0, double coeff1, double coeff2, double coeff3, double coeff4, double coeff5, double coeff6)
-
Method Summary
Modifier and Type Method Description intdescribeContents()voidwriteToParcel(Parcel dest, int flags)Array<byte>toByteArray(ByteOrder byteOrder)Creates a byte array based on this object. StringtoString()-
-
Constructor Detail
-
PolynomialConfigData
PolynomialConfigData()
Default constructor.
-
PolynomialConfigData
PolynomialConfigData(ByteBuffer bb)
Constructor that creates object based on the provided byte buffer.
-
PolynomialConfigData
PolynomialConfigData(int id, int angleSensorId, int axis, double coeff0, double coeff1, double coeff2, double coeff3, double coeff4, double coeff5, double coeff6)
-
-
Method Detail
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
toByteArray
Array<byte> toByteArray(ByteOrder byteOrder)
Creates a byte array based on this object.
Takes in to account how the data is stored in the dataset regarding padding.
- Parameters:
byteOrder- the wanted byte order of the byte array
-
-
-
-