Enabled PWM test

This commit is contained in:
Jason Short 2012-02-09 22:21:30 -08:00
parent e5a0959394
commit fb003e9742
1 changed files with 32 additions and 27 deletions

View File

@ -4,7 +4,7 @@
// These are function definitions so the Menu can be constructed before the functions
// are defined below. Order matters to the compiler.
//static int8_t test_radio_pwm(uint8_t argc, const Menu::arg *argv);
static int8_t test_radio_pwm(uint8_t argc, const Menu::arg *argv);
static int8_t test_radio(uint8_t argc, const Menu::arg *argv);
//static int8_t test_failsafe(uint8_t argc, const Menu::arg *argv);
//static int8_t test_stabilize(uint8_t argc, const Menu::arg *argv);
@ -55,7 +55,7 @@ static int8_t test_rawgps(uint8_t argc, const Menu::arg *argv);
// User enters the string in the console to call the functions on the right.
// See class Menu in AP_Coommon for implementation details
const struct Menu::command test_menu_commands[] PROGMEM = {
// {"pwm", test_radio_pwm},
{"pwm", test_radio_pwm},
{"radio", test_radio},
// {"failsafe", test_failsafe},
// {"stabilize", test_stabilize},
@ -112,10 +112,14 @@ test_eedump(uint8_t argc, const Menu::arg *argv)
return(0);
}
/*
//static int8_t
//test_radio_pwm(uint8_t argc, const Menu::arg *argv)
static int8_t
test_radio_pwm(uint8_t argc, const Menu::arg *argv)
{
#if defined( __AVR_ATmega1280__ ) // determines if optical flow code is included
print_test_disabled();
return (0);
#else
print_hit_enter();
delay(1000);
@ -143,7 +147,8 @@ test_eedump(uint8_t argc, const Menu::arg *argv)
return (0);
}
}
}*/
#endif
}
/*
//static int8_t