Skip to content
Snippets Groups Projects
Commit ac5d9dac authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Added DEFAULT_REVERSE_ORIENTATION to know when to add PI to the orientation, not always in reverse

parent d2b60a33
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@
#define SEMAPHORE_TYPE "1000001"
#define SEMAPHORE_MARKER "alvar15"
#define DEFAULT_REVERSE_ORIENTATION true
/**
* \struct Sign_urdf_info.
*
......
......@@ -233,5 +233,5 @@ void CAdcSignals::load(std::auto_ptr<signals::signal_type> &signal_info)
bool reverse = false;
if (signal_info->orientation().present() && signal_info->orientation().get() == orientation::cxx_1)
reverse = true;
this->heading += (reverse ? M_PI : 0.0);
this->heading += (reverse != DEFAULT_REVERSE_ORIENTATION ? M_PI : 0.0);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment