Skip to content
Snippets Groups Projects
main.cpp 413 B
Newer Older
Martin Vítek's avatar
Martin Vítek committed
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>

#include "Potenciometr.h"
#include "servo.h"
#include "Controller.h"
//Pot min 163
//Pot max 820
//L max - 113°
//L min - 86°
//P max - 113°
//P min - 86°
Martin Vítek's avatar
Martin Vítek committed
int main(void)
Martin Vítek's avatar
Martin Vítek committed
{
Martin Vítek's avatar
Martin Vítek committed
    for(;;)
    {
        controller.L_handler();
        controller.R_handler();
        controller.send_debug();
Martin Vítek's avatar
Martin Vítek committed

Martin Vítek's avatar
Martin Vítek committed
    }
}