RT-AICHIPV3-sample
|
モーターの回転, 機体データの送信, コマンドの受信
10msec毎に割り込み関数で処理を実行
[詳解]
#include "LPC13xx.h"
#include "core_cm3.h"
#include "type.h"
#include "timer.h"
#include "pwm.h"
#include "AICHIPFunction.h"
#include "UserInterface.h"
#include "mpu9250.h"
#include "debug.h"
#include "uart.h"
#include "tinyMathFunction.h"
#include "usbTransmission.h"
関数 | |
void | initAICHIP (void) |
void | setSendDataEnable (uint8_t en) |
void | setDutyMotor (float pwm_duty) |
float | getDutyMotor (void) |
void | TIMER32_1_IRQHandler (void) |
float | getDegree (void) |
void | setDegree (float deg) |
uint8_t | isStop (void) |
uint8_t | isCurve (void) |
uint8_t | isSlope (void) |
void | debugAICHIP () |
変数 | |
volatile uint32_t | UARTCount |
volatile uint8_t | UARTBuffer [BUFSIZE] |
モーターの回転, 機体データの送信, コマンドの受信
10msec毎に割り込み関数で処理を実行
void debugAICHIP | ( | void | ) |
デバッグ用関数
void |
float getDegree | ( | void | ) |
現在の角度を返す
void |
float getDutyMotor | ( | void | ) |
motorに設定した現在のdutyを返す
void |
void initAICHIP | ( | void | ) |
AICHIPFunction.c内の関数を使用できるようにする
void |
uint8_t isCurve | ( | void | ) |
カーブしているかどうかを返す
void |
uint8_t isSlope | ( | void | ) |
斜面にいるかどうかを返す
void |
uint8_t isStop | ( | void | ) |
静止状態かどうかを返す
void |
void setDegree | ( | float | deg | ) |
角度をセットする
deg | [radian] |
void setDutyMotor | ( | float | pwm_duty | ) |
モータを指定したdutyで回転させる
pwm_duty | -1.0 to 1.0 |
void setSendDataEnable | ( | uint8_t | en | ) |
機体データの送信をするかどうかを選択
en | 1:送信 0:送信じ禁止 |
void TIMER32_1_IRQHandler | ( | void | ) |
10msec毎に行われる処理
void |
volatile uint32_t UARTCount |