forked from speed-dreams/speed-dreams-code
- add code for simplix_67GP
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7109 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 91cb36c52268f2006a3c33b646b61ca07471cb70 Former-commit-id: ab3c1dd16ee1576787e46b370b3677678050a1c1
This commit is contained in:
parent
9d0f0bc195
commit
7a6243875d
3 changed files with 28 additions and 3 deletions
|
@ -73,7 +73,7 @@ SET(ROBOT_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
# Official-only simplix instances.
|
# Official-only simplix instances.
|
||||||
SET(ROBOT_CLONES simplix_36GP simplix_sc simplix_srw simplix_stock simplix_trb1 simplix_ls1 simplix_ls2 simplix_mp5
|
SET(ROBOT_CLONES simplix_36GP simplix_67GP simplix_sc simplix_srw simplix_stock simplix_trb1 simplix_ls1 simplix_ls2 simplix_mp5
|
||||||
simplix_mpa1 simplix_mpa11 simplix_mpa12 simplix_lp1 simplix_ref)
|
simplix_mpa1 simplix_mpa11 simplix_mpa12 simplix_lp1 simplix_ref)
|
||||||
|
|
||||||
# The ubiquitous robot module and its clones.
|
# The ubiquitous robot module and its clones.
|
||||||
|
|
|
@ -112,6 +112,7 @@ extern GfLogger* PLogSimplix;
|
||||||
#define RTYPE_SIMPLIX_MPA11 11 // Robot type simplix_mpa11
|
#define RTYPE_SIMPLIX_MPA11 11 // Robot type simplix_mpa11
|
||||||
#define RTYPE_SIMPLIX_MPA12 12 // Robot type simplix_mpa12
|
#define RTYPE_SIMPLIX_MPA12 12 // Robot type simplix_mpa12
|
||||||
#define RTYPE_SIMPLIX_STOCK 13 // Robot type simplix_stock
|
#define RTYPE_SIMPLIX_STOCK 13 // Robot type simplix_stock
|
||||||
|
#define RTYPE_SIMPLIX_67GP 14
|
||||||
//==========================================================================*
|
//==========================================================================*
|
||||||
|
|
||||||
//==========================================================================*
|
//==========================================================================*
|
||||||
|
|
|
@ -403,6 +403,18 @@ void SetUpSimplix_36GP()
|
||||||
};
|
};
|
||||||
//==========================================================================*
|
//==========================================================================*
|
||||||
|
|
||||||
|
//==========================================================================*
|
||||||
|
// Schismatic entry point for simplix_36GP
|
||||||
|
//--------------------------------------------------------------------------*
|
||||||
|
void SetUpSimplix_67GP()
|
||||||
|
{
|
||||||
|
cRobotType = RTYPE_SIMPLIX_67GP;
|
||||||
|
SetParameters(NBBOTS, "67GP-cavallo-123");
|
||||||
|
TDriver::AdvancedParameters = true;
|
||||||
|
//TDriver::UseBrakeLimit = true;
|
||||||
|
TDriver::UseSCSkilling = true;
|
||||||
|
TDriver::SkillingFactor = 0.1f; // Skilling factor for career-mode
|
||||||
|
};
|
||||||
//==========================================================================*
|
//==========================================================================*
|
||||||
// Schismatic entry point for simplix_ls1
|
// Schismatic entry point for simplix_ls1
|
||||||
//--------------------------------------------------------------------------*
|
//--------------------------------------------------------------------------*
|
||||||
|
@ -597,6 +609,8 @@ int moduleWelcomeV1_00
|
||||||
SetUpSimplix_srw();
|
SetUpSimplix_srw();
|
||||||
else if (strncmp(RobName,"simplix_36GP",strlen("simplix_36GP")) == 0)
|
else if (strncmp(RobName,"simplix_36GP",strlen("simplix_36GP")) == 0)
|
||||||
SetUpSimplix_36GP();
|
SetUpSimplix_36GP();
|
||||||
|
else if (strncmp(RobName,"simplix_67GP",strlen("simplix_67GP")) == 0)
|
||||||
|
SetUpSimplix_67GP();
|
||||||
else if (strncmp(RobName,"simplix_mpa1",strlen("simplix_mpa1")) == 0)
|
else if (strncmp(RobName,"simplix_mpa1",strlen("simplix_mpa1")) == 0)
|
||||||
SetUpSimplix_mpa1();
|
SetUpSimplix_mpa1();
|
||||||
else if (strncmp(RobName,"simplix_mpa11",strlen("simplix_mpa11")) == 0)
|
else if (strncmp(RobName,"simplix_mpa11",strlen("simplix_mpa11")) == 0)
|
||||||
|
@ -880,6 +894,16 @@ static int InitFuncPt(int Index, void *Pt)
|
||||||
//cInstances[Index-IndexOffset].cRobot->SideBorderOuter(0.75f);
|
//cInstances[Index-IndexOffset].cRobot->SideBorderOuter(0.75f);
|
||||||
//cInstances[Index-IndexOffset].cRobot->UseFilterAccel();
|
//cInstances[Index-IndexOffset].cRobot->UseFilterAccel();
|
||||||
}
|
}
|
||||||
|
else if (cRobotType == RTYPE_SIMPLIX_67GP)
|
||||||
|
{
|
||||||
|
LogSimplix.debug("#cRobotType == RTYPE_SIMPLIX_67GP\n");
|
||||||
|
cInstances[Index-IndexOffset].cRobot->CalcSkillingFoo = &TDriver::CalcSkilling_simplix;
|
||||||
|
cInstances[Index-IndexOffset].cRobot->CalcFrictionFoo = &TDriver::CalcFriction_simplix_Identity;
|
||||||
|
cInstances[Index-IndexOffset].cRobot->CalcCrvFoo = &TDriver::CalcCrv_simplix_Identity;
|
||||||
|
cInstances[Index-IndexOffset].cRobot->CalcHairpinFoo = &TDriver::CalcHairpin_simplix_Identity;
|
||||||
|
cInstances[Index-IndexOffset].cRobot->ScaleSide(0.95f,0.95f);
|
||||||
|
cInstances[Index-IndexOffset].cRobot->SideBorderOuter(0.5f);
|
||||||
|
}
|
||||||
else if (cRobotType == RTYPE_SIMPLIX_MPA1)
|
else if (cRobotType == RTYPE_SIMPLIX_MPA1)
|
||||||
{
|
{
|
||||||
LogSimplix.debug("#cRobotType == RTYPE_SIMPLIX_MPA1\n");
|
LogSimplix.debug("#cRobotType == RTYPE_SIMPLIX_MPA1\n");
|
||||||
|
|
Loading…
Reference in a new issue