-
-
Notifications
You must be signed in to change notification settings - Fork 0
String Output Not Working #309
Description
I am trying to pull the name of the current plane so I can do some switching on the Arduino to handle LEDs. There is a provided TITLE option from plane data, and I have entered my own (A:TITLE, String) output as a test also. In the .cpp file I noticed that my custom output is being converted to an Int even though a string was selected in BaD Custom Output (e.g. output3017 = cutValue.toInt();). The default option provided by BaD looks ok in the .cpp file in that it isn't being converted to an Int when being assigned to planeName.
In the .h file, I see my custom output is again cast into an int and not a string (e.g. int getOutput3017() {return output3017;}
The default plane title provided by BaD looks ok in the .h file in that it shows a string for "getPlanename."
In both cases, when using the Simvar watcher, it is showing a 0 for the plane name. The screenshot shows that Axis and Ohs is reporting A:TITLE to be "Pilatus PC-12/47 Fly7 OH-DEN". I tried just changing the int to String in the .cpp and .h file for my custom variable but it still is sending out a 0.
