Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reinstate maximum steering angle (PATCH)
06-26-2009, 11:40 PM,
#2
Re: Reinstate maximum steering angle (PATCH)
fudje Wrote:I've tried to keep this to the current coding style (header seem to have a lot of implementation code in them - what's with that? It could be driving up compilation times, btw)

The cardynamics.h file defines a templated CARDYNAMICS class. The only reason I made it a template was so I could easily switch between floats and doubles as the primary "real" type, but this would have been much better served with a typedef instead of a template (woops, poor design on my part). As a result the implementation of the class is in the header since that's the easiest way to do template classes. Of course, there are fairly simple ways to separate out the implementation and header with template functions, and even better I could just refactor to use a typedef, but I haven't bothered yet. If you're interested in doing this let me know and I'll set you up with SVN access (the patch looks good and I'm applying it now).
Reply


Messages In This Thread
Re: Reinstate maximum steering angle (PATCH) - by joevenzon_phpbb2_import3 - 06-26-2009, 11:40 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-27-2009, 12:13 AM
[No subject] - by fudje - 06-27-2009, 01:46 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)