Commit 11773301 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

corrected assignment of map_angle to genes in LS

parent 1ab09abc
......@@ -230,7 +230,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3); }
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3); }
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3); }}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -260,7 +260,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3); }
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3); }
else { tmp3 = map_angle_360(tmp3); }}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -231,8 +231,8 @@ while(valid) {
fixedpt fixpt_tmp2 = fixpt_tmp1 + tmp_bias;
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3);}}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -262,7 +262,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -233,7 +233,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3); }
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3); }
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3); }}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -263,7 +263,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -233,7 +233,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3);}}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -263,7 +263,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -232,7 +232,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3);}}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -262,7 +262,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -232,7 +232,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3);}}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -262,7 +262,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -233,7 +233,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3);}}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -263,7 +263,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -232,7 +232,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3);}}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -262,7 +262,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
......@@ -233,7 +233,7 @@ while(valid) {
fixedpt fixpt_tmp3 = (positive_direction == true)? (genotype [i] + fixpt_tmp2):
(genotype [i] - fixpt_tmp2);
if (i>3) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
if (i>2) {if (i==4) { fixpt_tmp3 = fixedpt_map_angle_180(fixpt_tmp3);}
else { fixpt_tmp3 = fixedpt_map_angle_360(fixpt_tmp3);}}
entity_possible_new_genotype [i] = fixpt_tmp3;
......@@ -263,7 +263,7 @@ while(valid) {
float tmp2 = tmp1 + tmp_bias;
float tmp3 = (positive_direction == true)? (genotype [i] + tmp2): (genotype [i] - tmp2);
if (i>3) {if (i==4) { tmp3 = map_angle_180(tmp3);}
if (i>2) {if (i==4) { tmp3 = map_angle_180(tmp3);}
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment