]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Do not use zero as publication strength
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 27 Feb 2013 10:28:18 +0000 (11:28 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 27 Feb 2013 10:28:18 +0000 (11:28 +0100)
It seems that ORTE may not work correctly with zero strength (see
CSTReaderPersistenceTimer() in RTPSCSTReader.c).

src/types/roboortegen.pl

index 2bfd734af093c9f03cbdfe0bcd215bad9889726d..8061347095b08c67e1a1640d9d1b1827d9e470c6 100755 (executable)
@@ -393,7 +393,7 @@ int ${roboorte_name}_roboorte_init(struct ${roboorte_name}_orte_data *data)
 \tORTEDomainProp prop;
 \tORTEInit();
 
-\tif ($data_arg_name->strength < 0)
+\tif ($data_arg_name->strength <= 0)
 \t\t$data_arg_name->strength = $publication_strength;
 
 \tORTEVerbositySetOptions("ALL.0");