AC_PID: update example sketch to test AC_HELI_PID

This commit is contained in:
Robert Lefebvre 2014-04-15 22:14:00 -04:00 committed by Randy Mackay
parent ef7dc815cd
commit 6333b4bba6
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include <AP_Math.h>
#include <AP_Param.h>
#include <AC_PID.h>
#include <AC_HELI_PID.h>
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
@ -32,6 +33,7 @@ void loop()
{
// setup (unfortunately must be done here as we cannot create a global AC_PID object)
AC_PID pid(TEST_P, TEST_I, TEST_D, TEST_IMAX * 100);
AC_HELI_PID heli_pid(TEST_P, TEST_I, TEST_D, TEST_IMAX * 100);
uint16_t radio_in;
uint16_t radio_trim;
int error;