Make simulator read RC through real drone code

This commit is contained in:
Oleg Kalachev
2024-01-06 00:09:29 +03:00
parent 476f24f774
commit 48ea797a47
3 changed files with 5 additions and 4 deletions

View File

@@ -54,6 +54,4 @@ void joystickGet() {
}
channels[RC_CHANNEL_MODE] = SDL_JoystickGetButton(joystick, 0) ? 1 : 0;
controls[RC_CHANNEL_MODE] = channels[RC_CHANNEL_MODE];
normalizeRC();
}