[Ovmsdev] Fwd: [openvehicles/Open-Vehicle-Monitoring-System-3] 9edb1a: Re-arrange vehicle constructor factory to save mem...

Mark Webb-Johnson mark at webb-johnson.net
Wed Nov 8 11:05:06 HKT 2017


I’ve re-arranged the vehicle factory slightly, to allow for a long vehicle name to be passed when the vehicle is registered, and to use const char* rather than std::string (to save ram).

This has been committed. The change is purely to the registration functions, and to remove the VehicleName() function, so it should merge in with any local changes you have made. But I do suggest you do a ‘git pull’ to bring this in before making any other changes.

Regards, Mark.

>  Branch: refs/heads/master
>  Home:   https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3
>  Commit: 9edb1aa515efcb19c6054d19f7963cceee2da078
>      https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/9edb1aa515efcb19c6054d19f7963cceee2da078
>  Author: Mark Webb-Johnson <mark at webb-johnson.net>
>  Date:   2017-11-08 (Wed, 08 Nov 2017)
> 
>  Changed paths:
>    M vehicle/OVMS.V3/components/vehicle/vehicle.cpp
>    M vehicle/OVMS.V3/components/vehicle/vehicle.h
>    M vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.cpp
>    M vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.h
>    M vehicle/OVMS.V3/components/vehicle_nissanleaf/src/vehicle_nissanleaf.cpp
>    M vehicle/OVMS.V3/components/vehicle_nissanleaf/src/vehicle_nissanleaf.h
>    M vehicle/OVMS.V3/components/vehicle_none/src/vehicle_none.cpp
>    M vehicle/OVMS.V3/components/vehicle_none/src/vehicle_none.h
>    M vehicle/OVMS.V3/components/vehicle_obdii/src/vehicle_obdii.cpp
>    M vehicle/OVMS.V3/components/vehicle_obdii/src/vehicle_obdii.h
>    M vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.cpp
>    M vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h
>    M vehicle/OVMS.V3/components/vehicle_teslaroadster/src/vehicle_teslaroadster.cpp
>    M vehicle/OVMS.V3/components/vehicle_teslaroadster/src/vehicle_teslaroadster.h
>    M vehicle/OVMS.V3/components/vehicle_track/src/vehicle_track.cpp
>    M vehicle/OVMS.V3/components/vehicle_track/src/vehicle_track.h
> 
>  Log Message:
>  -----------
>  Re-arrange vehicle constructor factory to save memory (ram) and provide a long vehicle descriptive name during registration
> 
> 




More information about the OvmsDev mailing list