• Welcome to PiBoSo Official Forum. Please login or sign up.
 
October 22, 2019, 09:15:36 pm

News:

GP Bikes beta16b available! :)


Output plugins

Started by PiBoSo, June 06, 2013, 08:06:33 pm

Previous topic - Next topic

HornetMaX

@h106frp: if you're compiling c++ you have to put extern "C" before all __declspec(dllexport)
Should be like this:


extern "C" __declspec(dllexport) int Startup(char *_szSavePath)
{
... ...


MaX.

h106frp

Thanks, i will recompile,still getting to grip with C++

HornetMaX

If you only want to use C you won't need the "extern" declaration. But you need to tell your compiler that you want to compile C-style :)

MaX.

h106frp

All good now  :) Acceleration outputs looking more like i was hoping for at 100Hz rate :)

PiBoSo


Example source code updated to the latest interface.
"Obviously your ambition outweighs your talent".

HornetMaX

Oh damn, more work :)

Thanks !

MaX.

PiBoSo


Example source code updated to the latest interface.

The only change is the addition of m_fTrackPos to SPluginsRaceTrackPosition_t
Since this structure was probably still unused, no changes have been made to version checking, to preserve compatibility.
"Obviously your ambition outweighs your talent".

HornetMaX

Quote from: PiBoSo on February 18, 2016, 04:21:28 pm

Example source code updated to the latest interface.

The only change is the addition of m_fTrackPos to SPluginsRaceTrackPosition_t
Since this structure was probably still unused, no changes have been made to version checking, to preserve compatibility.

Thx (and no problem for me about the ninja change).

One question however: it seems to me that the issue discussed here (client not being able to know his own race number, or the number of the bike being watched, if in replay mode on a bike-attached camera) is still not solved.

PiBoSo

Quote from: HornetMaX on February 18, 2016, 08:19:22 pm
Quote from: PiBoSo on February 18, 2016, 04:21:28 pm

Example source code updated to the latest interface.

The only change is the addition of m_fTrackPos to SPluginsRaceTrackPosition_t
Since this structure was probably still unused, no changes have been made to version checking, to preserve compatibility.

Thx (and no problem for me about the ninja change).

One question however: it seems to me that the issue discussed here (client not being able to know his own race number, or the number of the bike being watched, if in replay mode on a bike-attached camera) is still not solved.


RaceVehicleData should receive the data you need, using the SPluginsRaceVehicleData_t structure.
"Obviously your ambition outweighs your talent".

HornetMaX

Quote from: PiBoSo on February 18, 2016, 08:38:42 pm
RaceVehicleData should receive the data you need, using the SPluginsRaceVehicleData_t structure.

Embarassing, I dind't even notice it  :-[

Thx !

asic_designer

Hi All

  This is a great post!!! I want to use this simulator for a few projects that I have in the works, and I was wondering if I could get real time data, this is great, now I know I can.  One question what about GPS, can I have the simulator output a NMEA sentence, or perhaps simply the GPS coordinates?
Encephalon Nand Logic Smart Helmet
http://www.nandlogic.com/promo-smarthelmet.php

PiBoSo


Example source code updated to the latest interface.
"Obviously your ambition outweighs your talent".

PiBoSo


Example source code updated to the latest interface.
Removed the "semaphore" session state only.
"Obviously your ambition outweighs your talent".

HornetMaX

Totally minor, but I still see the "semaphore" state in the comments of the example.

PiBoSo


Example source code updated to the latest interface.
"Obviously your ambition outweighs your talent".