[Ovmsdev] "New" car add

Tamás Kovács kommykt at gmail.com
Wed Sep 12 00:11:55 HKT 2018


   - In attachment
   - compare on attachment picture
   - OvmsVehiclePeugeotInit::OvmsVehiclePeugeotInit()

  {
  ESP_LOGI(TAG, "Registering Vehicle: PEUGEOT ION (9000)");

  MyVehicleFactory.RegisterVehicle<OvmsVehiclePeugeot>("PI","Peugeot iOn");
  }


   - OvmsVehiclePeugeot::OvmsVehiclePeugeot()

  {
  ESP_LOGI(TAG, "Start Peugeot  vehicle module");

  mi_candata_timer = 0;
  mi_est_range = 0;
  mi_stale_charge = 0;
  mi_QC = 0;
  mi_QC_counter = 5;
  mi_last_good_SOC = 0;
  mi_last_good_range = 0;
  memset(m_vin,0,sizeof(m_vin));
  memset(mi_batttemps,0,sizeof(mi_batttemps));

  RegisterCanBus(1,CAN_MODE_ACTIVE,CAN_SPEED_500KBPS);

  // require GPS:
  MyEvents.SignalEvent("vehicle.require.gps", NULL);
  MyEvents.SignalEvent("vehicle.require.gpstime", NULL);
  }

   - Type Name
      - DEMO Demonstration vehicle
      - FT5E Fiat 500e
      - KS   Kia Soul EV
      - MI   Mitsubishi iMiev
      - NL   Nissan Leaf
      - NONE Empty vehicle
      - O2   OBDII
      - RT   Renault Twizy
      - TGTC Think City
      - TR   Tesla Roadster
      - TS   Tesla Model S
      - VA   Volt/Ampera
      - XX   TRACK
      - ZEVA ZEVA BMS




Mark Webb-Johnson <mark at webb-johnson.net> ezt írta (időpont: 2018. szept.
11., K, 3:07):

> Can you show the source code for your module (github repository?), or just:
>
>
>    - Your component.mk
>    - The changes you have made to sdkconfig
>    - Your OvmsVehicle***Init::OvmsVehicle**Init() function
>    - Your OvmsVehicle***::OvmsVehicle***() function
>    - Output of ‘vehicle list’ command
>
>
> Regards, Mark.
>
> On 11 Sep 2018, at 2:27 AM, Tamás Kovács <kommykt at gmail.com> wrote:
>
> Hi, i have a Peugoet iOn, some week ago i buy a OVMS v3.1 kit. Works
> well the basic functions for my car with Mitsubishi profile. I want to
> create a own profile for my car for testing, my own code, but i
> duplicate mitsubishi files in components folder, and all mitsubishi
> change to peugeot (case sensitive), and vehicle code modified to PI,
> and duplicate mitsibishi code in main/Kconfig and modify to peugeot,
> but i can not see in the web interface after make flash. After add it
> make show a question: add Peugeot to... i write Y, but nothing happen.
> I use MacOS High Sierra, and atom for modify files.
> <Screen Shot 2018-09-06 at 8.17.21.png><Screen Shot 2018-09-06 at
> 8.17.35.png>_______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>


-- 
Üdvözlettel:
Kovács Tamás
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180911/5f506600/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: component.mk
Type: application/octet-stream
Size: 690 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180911/5f506600/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-09-11 at 6.04.29.png
Type: image/png
Size: 222105 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180911/5f506600/attachment-0002.png>


More information about the OvmsDev mailing list