Conversation
|
Feel free to modify as you wish. |
|
Hi, it has a really long time, but now i am back to do some modifications on GIMX. |
|
Hi, what kind of application will use these messages? Except for the sensitivity, I find it tedious to directly change the values. This is the reason why the calibration mode exists. |
|
For controlling GIMX through an android app or http (web browser). There is an example here https://gimx.fr/forum/viewtopic.php?f=11&t=2875&start=10. More details here: https://github.com/Lucashsmello/GIMX-WebAPI
I can make the code for setting the calibration mode and changing calibration settings. As far as i know, there are three modes: normal mode, translation/acceleration/deadzone test calibration mode and circle test calibration mode. typedef struct PACKED
{
uint8_t packet_type;
uint8_t mode; // there are three modes: normal, translation_test, and circle_test
float x;
float y;
} s_network_packet_translation_test;
typedef struct PACKED
{
uint8_t packet_type;
uint8_t mode; // there are three modes: normal, translation_test, and circle_test
float radius;
float velocity;
float ratio;
} s_network_packet_circle_test; |
See https://github.com/Lucashsmello/GIMX/wiki/Network-api-extended for details.
Notes:
struct s_network_packet_configis used to receive configuration settings as well as to send configuration settings.