Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors in examples #141

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/array-datatype/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp
Expand Down
2 changes: 1 addition & 1 deletion examples/atomic-set/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"vehicleapp/setValue/request"
],
"writes": [
"vehicleapp/setValue/response",
"vehicleapp/setValue/response"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/atomic-set/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp, subscribe_topic
Expand Down
2 changes: 1 addition & 1 deletion examples/datapoint-set/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"vehicleapp/setSensor/request"
],
"writes": [
"vehicleapp/setValue/response",
"vehicleapp/setValue/response"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/datapoint-set/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp, subscribe_topic
Expand Down
38 changes: 0 additions & 38 deletions examples/dog-mode/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,6 @@
"manifestVersion": "v3",
"name": "dogmode",
"interfaces": [
{
"type": "vehicle-signal-interface",
"config": {
"src": "https://github.com/COVESA/vehicle_signal_specification/releases/download/v3.0/vss_rel_3.0.json",
"datapoints": {
"required": [
{
"path": "Vehicle.Cabin.AmbientAirTemperature",
"access": "read"
},
{
"path": "Vehicle.Cabin.DogMode",
"access": "read"
},
{
"path": "Vehicle.Cabin.DogModeTemperature",
"access": "read"
},
{
"path": "Vehicle.Powertrain.Battery.StateOfCharge.Current",
"access": "read"
}
]
}
}
},
{
"type": "grpc-interface",
"config": {
"src": "https://github.com/eclipse/kuksa.val.services/blob/v0.2.0/hvac_service/proto/sdv/edge/comfort/hvac/v1/hvac.proto",
erikbosch marked this conversation as resolved.
Show resolved Hide resolved
"required": {
"methods": [
"SetAcStatus",
"SetTemperature"
]
}
}
},
{
"type": "pubsub",
"config": {
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic-rule/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk import config
from velocitas_sdk.config import Config, MiddlewareType
Expand Down
2 changes: 1 addition & 1 deletion examples/performance-subscribe/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import signal
from datetime import datetime

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.model import DataPoint
from velocitas_sdk.util.log import ( # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion examples/static-rule/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
]
}
}
},
}
]
}
2 changes: 1 addition & 1 deletion examples/static-rule/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp, subscribe_data_points
Expand Down
2 changes: 1 addition & 1 deletion examples/vdb-queries/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
]
}
}
},
}
]
}
2 changes: 1 addition & 1 deletion examples/vdb-queries/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp
Expand Down
2 changes: 1 addition & 1 deletion requirements-links.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
git+https://github.com/eclipse-velocitas/vehicle-model-python.git@v0.3.0
# Pip dependencies specified by github links