4 This property has a basic type which is updated often, therefore use
10 name = "vehicle_speed",
11 basic_table_name = "amb_vehicle_speed", -- default: "amb_" + name
13 obj = "/org/automotive/runningstatus/vehicleSpeed",
14 interface = "org.automotive.vehicleSpeed",
15 property = "VehicleSpeed",
22 Shift position property
24 Use custom handler for setting the stick status.
27 stick_handler = function (self, property)
28 -- insert or update the incoming data
30 print("shift position handler: " .. property)
32 table = self.outputs.test_table
34 table:replace({ id = 0, shift_position = property })
38 name = "stick_handler",
39 handler = stick_handler,
41 test_table = mdb.table {
42 name = "amb_shift_position",
46 { "id", mdb.unsigned },
47 { "shift_position", mdb.unsigned },
52 obj = "/org/automotive/runningstatus/transmission",
53 interface = "org.automotive.transmission",
54 property = "ShiftPosition",