C++

Topics about the Software of Revolution Pi
Post Reply
Dat Ha
Posts: 4
Joined: 05 Jan 2024, 10:21
Answers: 0

C++

Post by Dat Ha »

In the near future we will work with revpi-compact (collect data from sensors and control devices)
The language used is C++
I want to ask what C++ version is recommended to use
User avatar
p.rosenberger
KUNBUS
Posts: 89
Joined: 03 Jul 2020, 11:07
Answers: 1

Re: C++

Post by p.rosenberger »

We provide GNU C++ 10.2 compiler with our Bullseye release. So you can use any language feature which g++ 10.2 supports.
Dat Ha
Posts: 4
Joined: 05 Jan 2024, 10:21
Answers: 0

Re: C++

Post by Dat Ha »

What C++ version is PiController currently using?
I want my application to use the same version of the core library to avoid unexpected errors
User avatar
p.rosenberger
KUNBUS
Posts: 89
Joined: 03 Jul 2020, 11:07
Answers: 1

Re: C++

Post by p.rosenberger »

PiControl doesn't use C++ and we don't provide a C++ library.

PiCOntrol provides a device file:

Code: Select all

/dev/piControl
To work with piControl you need to open the device file and interact with the process image. We have an example program to show how this is done:
https://github.com/RevolutionPi/revpi-pitest

You need to use headers from piControl, in pitest this is done by pulling the piControl repo as submodule:
https://github.com/RevolutionPi/revpi-p ... master/lib

Best regards,
Philipp
Post Reply