Kim, Jung - Hyun Hi-axis converter is created.
[App Thank you for help janghoyeon who's responsible, singangsik's responsibility, edged's responsibility, jeonghaein Institute's help before the birth. ]
1. Select the chip information in the Data Sheet provided by the sensor manufacturer.
2. Select a room scene (Top / Bottom) Mounting orientation and arrangement of parts.
3. calculation, using the calculate button.
(NOTE) Calculate Algorithm
-------------------------------------------------- --------------------
void Calculate_Axise ()
{
/ ************************************************
Step.
************************************************ /
Rotation = PlacementPoint - StandardPoint;
if (Rotation == 0) {
// 0 degree rotation
Place_X = Chipset_X;
Place_Y = Chipset_Y;
Place_Z = Chipset_Z;
} Else if (Rotation == 1 || Rotation == (-3)) {
// Rotate 90 degrees
Place_X = Chipset_Y;
Place_Y Chipset_X * = (-1);
Place_Z = Chipset_Z;
} Else if (Rotation == -1 || Rotation == 3) {
// -90 Degrees rotation
Place_X Chipset_Y * = (-1);
Place_Y = Chipset_X;
Place_Z = Chipset_Z;
} Else {
// 180 degrees
Place_X Chipset_X * = (-1);
Place_Y Chipset_Y * = (-1);
Place_Z = Chipset_Z;
}
/ ************************************************
Step.
************************************************ /
if (PlacementFace == 1) {
// TOP Placed
Place_X = Place_X;
Place_Y = Place_Y;
Place_Z = Place_Z;
} Else {
// BOTTOM Placed
Place_X Place_X * = (-1);
Place_Y = Place_Y;
Place_Z Place_Z * = (-1);
}
/ ************************************************
Step.
************************************************ /
QCT_X = Place_Y;
QCT_Y = Place_X;
QCT_Z Place_Z * = (-1);
}
-------------------------------------------------- --------------------
Thank you.
[App Thank you for help janghoyeon who's responsible, singangsik's responsibility, edged's responsibility, jeonghaein Institute's help before the birth. ]
1. Select the chip information in the Data Sheet provided by the sensor manufacturer.
2. Select a room scene (Top / Bottom) Mounting orientation and arrangement of parts.
3. calculation, using the calculate button.
(NOTE) Calculate Algorithm
-------------------------------------------------- --------------------
void Calculate_Axise ()
{
/ ************************************************
Step.
************************************************ /
Rotation = PlacementPoint - StandardPoint;
if (Rotation == 0) {
// 0 degree rotation
Place_X = Chipset_X;
Place_Y = Chipset_Y;
Place_Z = Chipset_Z;
} Else if (Rotation == 1 || Rotation == (-3)) {
// Rotate 90 degrees
Place_X = Chipset_Y;
Place_Y Chipset_X * = (-1);
Place_Z = Chipset_Z;
} Else if (Rotation == -1 || Rotation == 3) {
// -90 Degrees rotation
Place_X Chipset_Y * = (-1);
Place_Y = Chipset_X;
Place_Z = Chipset_Z;
} Else {
// 180 degrees
Place_X Chipset_X * = (-1);
Place_Y Chipset_Y * = (-1);
Place_Z = Chipset_Z;
}
/ ************************************************
Step.
************************************************ /
if (PlacementFace == 1) {
// TOP Placed
Place_X = Place_X;
Place_Y = Place_Y;
Place_Z = Place_Z;
} Else {
// BOTTOM Placed
Place_X Place_X * = (-1);
Place_Y = Place_Y;
Place_Z Place_Z * = (-1);
}
/ ************************************************
Step.
************************************************ /
QCT_X = Place_Y;
QCT_Y = Place_X;
QCT_Z Place_Z * = (-1);
}
-------------------------------------------------- --------------------
Thank you.
Show More