Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Track start orientation conversion
11-01-2010, 05:13 PM
Post: #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.
Find all posts by this user
Quote this message in a reply
11-01-2010, 06:55 PM
Post: #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--
Find all posts by this user
Quote this message in a reply
11-01-2010, 07:49 PM
Post: #3
 
I've committed the code(untested).
Find all posts by this user
Quote this message in a reply
11-02-2010, 10:09 AM
Post: #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--
Find all posts by this user
Quote this message in a reply
11-02-2010, 10:14 AM
Post: #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--
Find all posts by this user
Quote this message in a reply
11-02-2010, 02:31 PM
Post: #6
 
Thanks, fixed.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)