mirror of
https://github.com/okalachev/flix.git
synced 2026-06-27 21:46:38 +00:00
Remove reboot requirement when changing RC_RX_PIN
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ Before using SBUS-connected remote control you need to enable SBUS and calibrate
|
|||||||
|
|
||||||
1. Connect to the drone using QGroundControl.
|
1. Connect to the drone using QGroundControl.
|
||||||
2. In parameters, set the `RC_RX_PIN` parameter to the GPIO pin number where the SBUS signal is connected, for example: 4. Negative value disables SBUS.
|
2. In parameters, set the `RC_RX_PIN` parameter to the GPIO pin number where the SBUS signal is connected, for example: 4. Negative value disables SBUS.
|
||||||
3. Reboot the drone to apply changes.
|
3. Check if the receiver is working using `rc` command in the console.
|
||||||
4. Open the console, type `cr` command and follow the instructions to calibrate the remote control.
|
4. Open the console, type `cr` command and follow the instructions to calibrate the remote control.
|
||||||
5. Use the remote control to fly the drone!
|
5. Use the remote control to fly the drone!
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -86,7 +86,7 @@ Parameter parameters[] = {
|
|||||||
{"MOT_PWM_MIN", &pwmMin},
|
{"MOT_PWM_MIN", &pwmMin},
|
||||||
{"MOT_PWM_MAX", &pwmMax},
|
{"MOT_PWM_MAX", &pwmMax},
|
||||||
// rc
|
// rc
|
||||||
{"RC_RX_PIN", &rcRxPin},
|
{"RC_RX_PIN", &rcRxPin, setupRC},
|
||||||
{"RC_ZERO_0", &channelZero[0]},
|
{"RC_ZERO_0", &channelZero[0]},
|
||||||
{"RC_ZERO_1", &channelZero[1]},
|
{"RC_ZERO_1", &channelZero[1]},
|
||||||
{"RC_ZERO_2", &channelZero[2]},
|
{"RC_ZERO_2", &channelZero[2]},
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ void print(const char* format, ...);
|
|||||||
void pause(float duration);
|
void pause(float duration);
|
||||||
void doCommand(String str, bool echo);
|
void doCommand(String str, bool echo);
|
||||||
void handleInput();
|
void handleInput();
|
||||||
|
void setupRC();
|
||||||
void normalizeRC();
|
void normalizeRC();
|
||||||
void calibrateRC();
|
void calibrateRC();
|
||||||
void calibrateRCChannel(int*, uint16_t[16], uint16_t[16], const char*);
|
void calibrateRCChannel(int*, uint16_t[16], uint16_t[16], const char*);
|
||||||
|
|||||||
Reference in New Issue
Block a user