Skip to content

set_simdatum Warning log message #12

@mjfrisby

Description

@mjfrisby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions