Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tracking speed/acceleration statistics
04-16-2009, 09:43 PM,
#2
 
In include/cardynamics.h there is a CARTELEMETRY class that is designed for this sort of thing, although you may need to extend it a bit to do exactly what you want as the current implementation is pretty basic. To enable telemetry you need to comment in SetupTelemetry() in CARDYNAMICS::SetInitialConditions(). Then, in CARDYNAMICS::SetupTelemetry(), add the parameters that you want to write to a file (the existing code there should give you an idea of what it should look like). The data will be written to some output files that are intended for use with GNUPLOT. The car's speed and acceleration are kept track of in CARDYNAMICS member variable body -- see rigidbody.h, which has accessors for velocity and position. The only caution about the current way the telemetry class is set up is that it expects a pointer to a memory location to watch, so don't give it locations of temporary stack variables.
Reply


Messages In This Thread
[No subject] - by joevenzon_phpbb2_import3 - 04-16-2009, 09:43 PM
[No subject] - by ntsourak - 05-08-2009, 02:28 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-09-2009, 01:17 AM
[No subject] - by ntsourak - 05-11-2009, 03:18 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-12-2009, 11:29 PM
[No subject] - by ntsourak - 05-13-2009, 07:56 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-13-2009, 10:33 AM
[No subject] - by ntsourak - 05-14-2009, 01:56 PM
[No subject] - by alex25 - 05-14-2009, 02:22 PM
[No subject] - by ntsourak - 05-15-2009, 06:04 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-15-2009, 08:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)