Skip to content

firmware: check and send position updates every 5ms, not 10ms #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ static const int TIMER_PERIOD = 500; // in us
volatile int counter_send_pos_update = 0;
volatile bool flag_send_pos_update = false;

static const int interval_send_pos_update = 10000; // in us
static const int interval_send_pos_update = 5000; // in us
elapsedMicros us_since_last_pos_update;

static const int interval_check_position = 10000; // in us
static const int interval_check_position = 5000; // in us
elapsedMicros us_since_last_check_position;

static const int interval_send_joystick_update = 30000; // in us
Expand Down