Author Topic: Proxy plugin  (Read 8477 times)

HornetMaX

  • Hero Member
  • *****
  • Posts: 5944
    • View Profile
Re: Proxy plugin
« Reply #15 on: March 13, 2016, 08:59:59 AM »
Quick question: at which frequency is the default proxy plugin data updated ?
Custom plugins can specify that at 10/20/50/100 Hz, but what about the default proxy.dlo ?

The sample code you provide (http://www.gp-bikes.com/downloads/gpb_proxy.c) seems to read from a proxy.ini file: is that the case for the default proxy.dlo ?

The default is 10hz.

OK. Can it be changed with a proxy.ini ?

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2659
    • View Profile
Re: Proxy plugin
« Reply #16 on: March 13, 2016, 11:12:27 AM »

As the source code shows:
1) create a file named proxy.ini in the "plugins" folder
2) add the following lines:
Code: [Select]
[params]
sample_rate = 50

You can check in the source code that the supported values are 10, 20, 50 and 100.
Obviously your ambition outweighs your talent

HornetMaX

  • Hero Member
  • *****
  • Posts: 5944
    • View Profile
Re: Proxy plugin
« Reply #17 on: March 13, 2016, 03:43:16 PM »
Thx ! Wasn't sure of the example code was the one in use in proxy.dlo.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2659
    • View Profile
Re: Proxy plugin
« Reply #18 on: September 30, 2016, 07:58:43 PM »

Source code updated to the latest interface.
Obviously your ambition outweighs your talent

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2659
    • View Profile
Re: Proxy plugin
« Reply #19 on: February 16, 2017, 10:50:50 PM »

Source code updated to the latest interface.
Obviously your ambition outweighs your talent

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2659
    • View Profile
Re: Proxy plugin
« Reply #20 on: January 20, 2018, 01:26:09 PM »

Source code updated to the latest interface.
Obviously your ambition outweighs your talent

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2659
    • View Profile
Re: Proxy plugin
« Reply #21 on: July 13, 2018, 03:30:23 PM »

Source code updated to the latest interface.
Obviously your ambition outweighs your talent

Fightone

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Proxy plugin
« Reply #22 on: December 11, 2018, 03:03:07 AM »
Hey guys, can you please help me out?
Sorry for possibly a noob question but I'm tad confused. I'm using Max's test code from the first page and getting the data, but it's in some strange format like this when starting the bike:

''Speed940.48Kmh
Revs1117953633Rpm
State: 2
Speed938.721Kmh
Revs1117925790Rpm
State: 2
Speed936.422Kmh
Revs1117905668Rpm
State: 1""

So data isn't too realistic.

So what am I doing wrong here, is the data is in some specific format?