aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 6c71a1cfe61bb0f58057a7a7c7b4843a5299b4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Information
====
<br>This service will be started by systemd, and then
<br>use logitel G29 to get wheel info for low-level-can-service.
<br>It will read information from usb g29 as /dev/input/js0.
<br>And post steering wheel information to "hs" device which is defined in /etc/dev-mapping.conf.

* Hardware: Renesas m3ulcb
* Software: FF 6.0.0
* project name: wheel-service
* support device: Logitech G29 steering wheel
* steering wheel information is write in steering_wheel_map.json
    * VehicleSpeed			< Engine Speed * Gear parameter / 100 >
    * EngineSpeed			< 0~10000 >
    * AcceleratorPedalPosition	< 0~100 >
    * TransmissionGearInfo    < 0、1、2、3、4、5、6 >
    * TransmissionMode		< 0、1、2、3、4、5、6 >
    * SteeringWheelAngle		< 0~360 >
    * TurnSignalStatus		< 0:None / 1:RightTurn / 2:LeftTurn >
    * LightStatusBrake		< 0:None / 1:BrakeEnable >

How to compile and install
====
<br>	These is a sample recipes for wheel-service, you can just add that recipes into your project and bitbake.
<br>	Sample Recipes: agl-service-steering-wheel_0.1.bb

How to use
====
For AGL Application
----
<br>1.you can use candev.sh to start can device.
<br>2.use below command to start wheel.service.
```
systemctl start wheel.service
```
<br>3.copy sample/application-generated.cpp file to low-level-can-service's low-can-binding/binding/ folder to overwrite the same file.
<br>4.compile low-level-can-service and reinstall low-can-service.wgt.
<br>5.use afb-client-demo to get event.
```
afb-client-demo ws://localhost:5555/api?token=3210
low-can list
low-can subscribe { "event" : "engine.speed" }
low-can unsubscribe { "event" : "engine.speed" }
```