- Ensure that ORTE structure is zero-initialized. Either by it being a
global variable or by explicit memset().
- Do not initialzie strength parameter (expect for in joyd). The default
strength of all puvlishers is therefore zero.
+struct robottype_orte_data orte;
+
int main(int argc, char *argv[])
{
int ret;
int size;
int main(int argc, char *argv[])
{
int ret;
int size;
- struct robottype_orte_data orte;
struct can_frame frame;
if (cand_init() < 0) {
struct can_frame frame;
if (cand_init() < 0) {
printf("cand: init OK\n");
}
printf("cand: init OK\n");
}
/* orte initialization */
if(robottype_roboorte_init(&orte)) {
printf("Roboorte initialization failed! Exiting...\n");
/* orte initialization */
if(robottype_roboorte_init(&orte)) {
printf("Roboorte initialization failed! Exiting...\n");
void OrteSignals::createOrte()
{
void OrteSignals::createOrte()
{
+ memset(&orte, 0, sizeof(orte));
robottype_roboorte_init(&orte); //kontrola uspechu ?
//subscribers
robottype_roboorte_init(&orte); //kontrola uspechu ?
//subscribers
void OrteSignals::time_con(void)
{
emit time_sig(orte.match_time.time);
void OrteSignals::time_con(void)
{
emit time_sig(orte.match_time.time);
-}
\ No newline at end of file
+struct robottype_orte_data orte;
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- struct robottype_orte_data orte;
char * tty;
signal(SIGINT, sig_handler);
char * tty;
signal(SIGINT, sig_handler);
/* orte initialization */
if(robottype_roboorte_init(&orte)) {
fprintf(stderr, "displayd: Roboorte initialization failed! Exiting...\n");
/* orte initialization */
if(robottype_roboorte_init(&orte)) {
fprintf(stderr, "displayd: Roboorte initialization failed! Exiting...\n");
signal(SIGINT, int_handler);
signal(SIGINT, int_handler);
/* orte initialization */
if (robottype_roboorte_init(&orte)) {
/* orte initialization */
if (robottype_roboorte_init(&orte)) {
- robot.orte.strength = 20;
-
rv = robottype_roboorte_init(&robot.orte);
if (rv)
return rv;
rv = robottype_roboorte_init(&robot.orte);
if (rv)
return rv;
memset(&orte, 0, sizeof(orte));
rv = robottype_roboorte_init(&orte);
if (rv) {
memset(&orte, 0, sizeof(orte));
rv = robottype_roboorte_init(&orte);
if (rv) {
**********************************************************************/
void RobomonTuning::createOrte()
{
**********************************************************************/
void RobomonTuning::createOrte()
{
-
- orte.strength = 12;
-
+ memset(&orte, 0, sizeof(orte));
if (robottype_roboorte_init(&orte) != 0) {
perror("robottype_roboorte_init");
exit(1);
if (robottype_roboorte_init(&orte) != 0) {
perror("robottype_roboorte_init");
exit(1);