[Ovmsdev] Toyota bZ4X and Subaru Solterra
Michael Geddes
frog at bunyip.wheelycreek.net
Sun May 28 08:23:46 HKT 2023
Hey Solterra,
I couldn't say definitively but imho there are various options depending on
HOW different.
1) They are exactly the same - or differences can be distinguished from
responses: Register the name with both in it. Done. (This has happened with
some older Kia + Hyundai even)
2) They are mostly the same. You could probably keep the one directory
but have 2 wrapper classes constructing the base class with a parameter
and register both in the factory Init. (Not sure if there are examples -
ask the other Michael if this is ok).
3) They have a lot of commonality. You can inherit off a base class - or
inherit one vehicle impl off the other... But put them in separate
directories. (This happens for Ioniq 5 and a bunch of other Kia + Hyundai
cars).
//.ichael Geddes
On Sat, 27 May 2023 at 21:19, Solterra <solterra at kezarnet.com> wrote:
> Hello again,
>
> I've finished my initial vehicle investigation and am not ready to add
> support to OVMS.
>
> When creating the vehicle stub, is there guidance for situations like on
> this vehicle? There are two makes and models that are essentially the same.
> Can I create a common 'components/vehicle_toyota_bz4x' and point two
> vehicle selections to it somewhere else?
>
> Thank you
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20230528/cf0aed4c/attachment.htm>
More information about the OvmsDev
mailing list