public int Get_Servo_Position(Structures_Echange.Com_Position_Robot.Com_Position_Robot_Identification idRobot, int idCarte, int idservo)
    {
        //Debug.Log("Get_Servo_Position trappe= " + idRobot.ToString() + "; " + idCarte.ToString() + "; " + idservo.ToString());
        int result = 0;

        result = Cartes_MultiFCt[idCarte - 1].GetComponentInChildren <servos>().GetServoPosition(idservo % 10);

        return(result);
    }
    public int Get_AX12_Position(Structures_Echange.Com_Position_Robot.Com_Position_Robot_Identification idRobot, int idCarte, int idAx12)
    {
        //Debug.Log("Get_AX12_Position trappe= " + idRobot.ToString() + "; " + idCarte.ToString() + "; " + idAx12.ToString());
        int result = 0;

        result = Cartes_MultiFCt[idCarte - 1].GetComponentInChildren <AX12>().GetAX12Position(idAx12 % 10);

        return(result);
    }
Exemplo n.º 3
0
 private int Get_AX_12_Position(Structures_Echange.Com_Position_Robot.Com_Position_Robot_Identification idRobot, int idCarte, int idAx12)
 {
     return(Conteneur_des_Cartes.GetComponent <Cartes_MultiFct_Panel>().Get_AX12_Position(idRobot, idCarte, idAx12));
 }