5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-14 12:48:31 -04:00

Heli: fixed some 'used before initialised' warnings

This commit is contained in:
Andrew Tridgell 2012-02-19 16:33:38 +11:00
parent f86e1ed63f
commit b06f35eaa2

View File

@ -457,7 +457,7 @@ setup_heli(uint8_t argc, const Menu::arg *argv)
int value = 0;
int temp;
int state = 0; // 0 = set rev+pos, 1 = capture min/max
int max_roll, max_pitch, min_collective, max_collective, min_tail, max_tail;
int max_roll=0, max_pitch=0, min_collective=0, max_collective=0, min_tail=0, max_tail=0;
// initialise swash plate
heli_init_swash();