-
I am trying to have my vehicles broadcast their location at every timestep. I am basing that part of my application off of this example which suggests:
In order to get it to compile, I had to replace the geoBroadCast() function with geoBroadcastMbms(). After this change it will compile if I commend out the last line. Now I am having trouble with MyV2XMessage() which I cannot find any information on. I am wondering if the name of this class has changed? It seems to me like I should be using V2xMessage(), which is described here: I tried using its subclass GenericV2xMessage() in the place of MyV2XMessage() in the code above, but I'm told I'm missing an argument "ToDataOutput". This argument isn't mentioned in the page describing GenericV2xMessage() at all:
Does MyV2xMessage still exist? If not, what is the best way to fix the example above to broadcast the vehicle's location? If GenericV2xMessage() is the right replacement function, how do I use it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The closest I got was doing: |
Beta Was this translation helpful? Give feedback.
The closest I got was doing:
getOs().getCellModule().sendV2xMessage(new MyV2XMessage.Empty(routing));
(the x in sendV2xMessage() should be lowercase!)
I still don't understand how to use ToDataOutput though.