Working on a script to send joystick x/y position via simconnect. Works just fine, however, no matter what unit type I specify, I get a warning logged
unrecognized Miscellaneous Unit in typefor(POSITION); using float64 as fallback
The relevant code is quite simple:
self.sim_connect.set_simdatum("YOKE X POSITION", x)
self.sim_connect.set_simdatum("YOKE Y POSITION", y)
I have tried without specifying units (as in above example), I have tried units=None and units="Position" (as well as others like `DATATYPE_FLOAT64 which result in errors.)
How can I call the simdatum method without generating these warnings? Like I said, it works fine, but it sure muddies up my log.
Working on a script to send joystick x/y position via simconnect. Works just fine, however, no matter what unit type I specify, I get a warning logged
unrecognized Miscellaneous Unit in typefor(POSITION); using float64 as fallbackThe relevant code is quite simple:
I have tried without specifying units (as in above example), I have tried
units=Noneandunits="Position"(as well as others like `DATATYPE_FLOAT64 which result in errors.)How can I call the simdatum method without generating these warnings? Like I said, it works fine, but it sure muddies up my log.