Skip to content

Conversation

@Lucashsmello
Copy link

See https://github.com/Lucashsmello/GIMX/wiki/Network-api-extended for details.

Notes:

  • I assumed that float data type is always 4 bytes.
  • struct s_network_packet_config is used to receive configuration settings as well as to send configuration settings.

@Lucashsmello
Copy link
Author

Feel free to modify as you wish.

@Lucashsmello
Copy link
Author

Hi, it has a really long time, but now i am back to do some modifications on GIMX.
Can you accept this pull request? This is necessary for matlo/GIMX#618.

@matlo
Copy link
Owner

matlo commented Feb 11, 2021

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.

@Lucashsmello
Copy link
Author

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

Except for the sensitivity, I find it tedious to directly change the values. This is the reason why the calibration mode exists.

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.
What about something like this?

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants