/** * Bulldozer with XBee remote controll * * Author: Jan Dvořák z Vozerovic * E-mail: dvorkaman@gmail.com * Web: dvorkaman.asp2.cz * Created: 2014 */ /* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Libraries #include "stdio.h" #define _define_bool_ 0x01 #define BLINK_INTERVAL 500 // ms #define DEBUG 0 #include "libSystem.c" #include "libSystemTime.c" #include "libGPIO.c" #include "libPWM.c" #include "libPWMTone.c" #include "libUSART.c" #include "libAnalog.c" #include "libMotor.c" #include "libServo.c" #include "libUtils.c" #include "libXbeeApi.c" #include "libRemote.c" #include "libEXTI.c" #include "libSensors.c" // Defines #define LIFT_MIDDLE 90 #define LIFT_MIN 0 #define LIFT_MAX 180 #define TILT_MIN 0 #define TILT_MIDDLE 90 #define TILT_MAX 180 #define DRIVE_MIN 20 // % #define LIGHTS_BLINK_PERIOD 500 // ms // Headers void initializePeriherals(void); void clearPeriherals(void); void showConnecting(void); void processCommand(libRemoteCommandValue cv);