Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Track start orientation conversion
11-01-2010, 05:13 PM,
#1
Track start orientation conversion
I've used a script to convert start orientation from quaternions to euler angles. If you notice any issues, please post here.
Reply
11-01-2010, 06:55 PM,
#2
Re: Track start orientation conversion
NaN Wrote:I've used a script to convert start orientation from quaternions to euler angles. If you notice any issues, please post here.
you should update the track editor to output euler angles then.

--alex--
Reply
11-01-2010, 07:49 PM,
#3
 
I've committed the code(untested).
Reply
11-02-2010, 10:09 AM,
#4
 
NaN Wrote:I've committed the code(untested).
doesn't even compile for me:
Code:
src/track.cpp: In member function 'void TRACK::Load(std::string)':
src/track.cpp:522: warning: unused variable 'w'
src/track.cpp: At global scope:
src/track.cpp:543: error: expected constructor, destructor, or type conversion before '.' token
src/track.cpp:544: error: expected unqualified-id before 'for'
src/track.cpp:544: error: expected constructor, destructor, or type conversion before '<' token
src/track.cpp:544: error: expected constructor, destructor, or type conversion before '++' token
scons: *** [build/track.o] Error 1
scons: building terminated because of errors.

--alex--
Reply
11-02-2010, 10:14 AM,
#5
 
looks like there is a stray } in there:
Code:
--- src/track.cpp       (revision 87)
+++ src/track.cpp       (working copy)
@@ -537,7 +537,6 @@
                        else end_of_position = true;
         }
         trackconfig.SuppressError(false); //turn error message back on
-       }

        int lapmarkers=0;
        trackconfig.GetParam("lap sequences", lapmarkers);
--alex--
Reply
11-02-2010, 02:31 PM,
#6
 
Thanks, fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)