Trying to add a new vehicle to Zombie 2.20A release
Posted: Thu Dec 26, 2024 6:26 pm
I am trying to migrate to this latest FW, but I need to modify the code. I have previously added RX8 vehicle CAN coms to an earlier version.
A lot has changed in the structuring of the code and to the positive direction for sure. However, when I tried to copy-paste my way to having the RX8 functions in, I get an error while attempting to compile. I thought it had something to do with my new c and h files and tried just modifying an existing vehicle according to my needs... still did not work. I am getting the following error:
Been banging my head against the wall with this one for a couple of hours now. A helping hand would be much appreciated. 
A lot has changed in the structuring of the code and to the positive direction for sure. However, when I tried to copy-paste my way to having the RX8 functions in, I get an error while attempting to compile. I thought it had something to do with my new c and h files and tried just modifying an existing vehicle according to my needs... still did not work. I am getting the following error:
Code: Select all
src/stm32_vcu.cpp:149:22: error: cannot declare variable 'subaruVehicle' to be of abstract type 'SubaruVehicle'
149 | static SubaruVehicle subaruVehicle;
| ^~~~~~~~~~~~~
In file included from src/stm32_vcu.cpp:49:
include/subaruvehicle.h:25:7: note: because the following virtual functions are pure within 'SubaruVehicle':
25 | class SubaruVehicle : public Vehicle
