V2.5B
This commit is contained in:
BIN
UnitConfig.dcu
BIN
UnitConfig.dcu
Binary file not shown.
@@ -1776,7 +1776,7 @@ object FormConfig: TFormConfig
|
|||||||
Top = 8
|
Top = 8
|
||||||
Width = 585
|
Width = 585
|
||||||
Height = 457
|
Height = 457
|
||||||
ActivePage = TabSheetAig
|
ActivePage = TabSheetSig
|
||||||
Font.Charset = DEFAULT_CHARSET
|
Font.Charset = DEFAULT_CHARSET
|
||||||
Font.Color = clBackground
|
Font.Color = clBackground
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
|
|||||||
@@ -2009,6 +2009,7 @@ procedure TFormConfig.ComboBoxDecChange(Sender: TObject);
|
|||||||
var s: string;
|
var s: string;
|
||||||
begin
|
begin
|
||||||
// Affiche(IntToStr(ComboBoxDec.ItemIndex),clyellow);
|
// Affiche(IntToStr(ComboBoxDec.ItemIndex),clyellow);
|
||||||
|
if NbreFeux<lignecliquee+1 then exit;
|
||||||
feux[lignecliquee+1].decodeur:= ComboBoxDec.ItemIndex;
|
feux[lignecliquee+1].decodeur:= ComboBoxDec.ItemIndex;
|
||||||
s:=encode_sig(lignecliquee+1);
|
s:=encode_sig(lignecliquee+1);
|
||||||
formconfig.RichSig.Lines[lignecliquee]:=s;
|
formconfig.RichSig.Lines[lignecliquee]:=s;
|
||||||
@@ -2504,6 +2505,7 @@ begin
|
|||||||
else asp:=i+6;
|
else asp:=i+6;
|
||||||
end;
|
end;
|
||||||
index:=lignecliquee+1; // index du feu
|
index:=lignecliquee+1; // index du feu
|
||||||
|
if NbreFeux<index then exit;
|
||||||
feux[index].aspect:=asp;
|
feux[index].aspect:=asp;
|
||||||
|
|
||||||
s:=encode_sig(index);
|
s:=encode_sig(index);
|
||||||
|
|||||||
BIN
UnitPrinc.dcu
BIN
UnitPrinc.dcu
Binary file not shown.
@@ -168,7 +168,7 @@ const
|
|||||||
titre='Signaux complexes GL ';
|
titre='Signaux complexes GL ';
|
||||||
tempoFeu=100;
|
tempoFeu=100;
|
||||||
MaxAcc=2048;
|
MaxAcc=2048;
|
||||||
LargImg=50;HtImg=91; // image des feux
|
LargImg=50;HtImg=91; // Dimensions image des feux
|
||||||
const_droit=2;const_devie=1; // positions aiguillages transmises par la centrale LENZ
|
const_droit=2;const_devie=1; // positions aiguillages transmises par la centrale LENZ
|
||||||
const_devieG_CDM=3; // positions aiguillages transmises par cdm
|
const_devieG_CDM=3; // positions aiguillages transmises par cdm
|
||||||
const_devieD_CDM=2; // positions aiguillages transmises par cdm
|
const_devieD_CDM=2; // positions aiguillages transmises par cdm
|
||||||
@@ -397,7 +397,7 @@ end;
|
|||||||
|
|
||||||
// renvoie le 1er numéro de bit à 1
|
// renvoie le 1er numéro de bit à 1
|
||||||
// ex BitNum(4)=2
|
// ex BitNum(4)=2
|
||||||
Function BitNum(n : word) : integer;
|
Function PremBitNum(n : word) : integer;
|
||||||
var i : integer;
|
var i : integer;
|
||||||
trouve : boolean;
|
trouve : boolean;
|
||||||
begin
|
begin
|
||||||
@@ -407,7 +407,7 @@ begin
|
|||||||
if not(trouve) then inc(i);
|
if not(trouve) then inc(i);
|
||||||
n:=n shr 1;
|
n:=n shr 1;
|
||||||
until (i=16) or trouve;
|
until (i=16) or trouve;
|
||||||
BitNum:=i;
|
PremBitNum:=i;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// conversion du motif de bits (codebin) de la configuration du signal complexe en deux mots:
|
// conversion du motif de bits (codebin) de la configuration du signal complexe en deux mots:
|
||||||
@@ -418,8 +418,8 @@ end;
|
|||||||
procedure code_to_aspect(codebin : word;var premierbit,combine : word) ;
|
procedure code_to_aspect(codebin : word;var premierbit,combine : word) ;
|
||||||
var i,mot : word;
|
var i,mot : word;
|
||||||
begin
|
begin
|
||||||
premierBit:=BitNum(CodeBin and $3ff);
|
premierBit:=PremBitNum(CodeBin and $3ff);
|
||||||
combine:=BitNum(CodeBin and $fc00);
|
combine:=PremBitNum(CodeBin and $fc00);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// dessine un cercle plein dans le feu
|
// dessine un cercle plein dans le feu
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user