Author Topic: Proxy plugin  (Read 5278 times)

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • 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: 2237
    • 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.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • 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: 2237
    • View Profile
Re: Proxy plugin
« Reply #18 on: September 30, 2016, 07:58:43 PM »

Source code updated to the latest interface.

PiBoSo

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

Source code updated to the latest interface.