Querying driver capabilities. More...
Querying driver capabilities.
All drivers will respond to the universal request subtype, PLAYER_CAPABILITIES_REQ.
This request takes a data structure that defines the message type and subtype of the capability you wish to query. The driver will respond with a NACK if the capability is not supported and an ACK if it is.
The HANDLE_CAPABILITY_REQUEST macro (from driver.h) can be used to make this process simpler, an example call would be something like this at the start of ProcessMessage
HANDLE_CAPABILITY_REQUEST (position_id, resp_queue, hdr, data, PLAYER_MSGTYPE_REQ, PLAYER_CAPABILITIES_REQ); HANDLE_CAPABILITY_REQUEST (position_id, resp_queue, hdr, data, PLAYER_MSGTYPE_CMD, PLAYER_POSITION2D_CMD_VEL);