Skip to content

Commit b49ec33

Browse files
committedMar 28, 2020
KALの主張を強くした
1 parent 486fe8d commit b49ec33

11 files changed

+24
-24
lines changed
 

‎config.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//robot configulation
2-
#ifndef ___CONFIG_H
3-
#define ___CONFIG_H
2+
#ifndef ___KAL_CONFIG_H
3+
#define ___KAL_CONFIG_H
44
//使うコントローラを選択
55
//#define ARDUINO_KAL
6-
//#define ESP32
7-
#define TITECH
6+
#define ESP32
7+
//#define TITECH
88
//#define EIGEN_KAL
99
//#define X2_KAL
1010

‎filter.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//filter and differentiator library
2-
#ifndef ___FILTER_H
3-
#define ___FILTER_H
2+
#ifndef ___KAL_FILTER_H
3+
#define ___KAL_FILTER_H
44
#include "config.h"
55
#include "utilize.h"
66

‎joint_controller.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//joint_controller
2-
#ifndef ___JOINT_CONTROLLER_H
3-
#define ___JOINT_CONTROLLER_H
2+
#ifndef ___KAL_JOINT_CONTROLLER_H
3+
#define ___KAL_JOINT_CONTROLLER_H
44
#include "config.h"
55
//#include "utilize.h"
66

‎kalmanfilter.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//kalman filter for SISO system
22
//@todo:MIMOの宣言の部分をコンパクトにしたい
33
//@todo:EKFにも対応させる
4-
#ifndef ___KALMAN_FILTER_H
5-
#define ___KALMAN_FILTER_H
4+
#ifndef ___KAL_KALMAN_FILTER_H
5+
#define ___KAL_KALMAN_FILTER_H
66
#include "config.h"
77
#include "utilize.h"
88
#ifdef X2_KAL

‎nxtmotor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//外部割込みによるエンコーダカウント
33
//@todo:nxtmotor class つくる
44

5-
#ifndef ___NXT_MOTOR_H
6-
#define ___NXT_MOTOR_H
5+
#ifndef ___KAL_NXT_MOTOR_H
6+
#define ___KAL_NXT_MOTOR_H
77
//#include <Arduino.h>
88
#include "utilize.h"
99
//モータ

‎nxtmotor_for_ESP.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//nxtmotor controller for esp32
2-
#ifndef ___NXTMOTOR_FOR_ESP_H
3-
#define ___NXTMOTOR_FOR_ESP_H
2+
#ifndef ___KAL_NXTMOTOR_FOR_ESP_H
3+
#define ___KAL_NXTMOTOR_FOR_ESP_H
44
#include<arduino.h>
55
//#include "utilize.h"
66
#include "driver/pcnt.h"

‎stepping_motor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef ___STEPPING_MOTOR_H
2-
#define ___STEPPING_MOTOR_H
1+
#ifndef ___KAL_STEPPING_MOTOR_H
2+
#define ___KAL_STEPPING_MOTOR_H
33
#include "config.h"
44
#include <math.h>
55

‎trajectory.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
軌跡生成ライブラリ
33
未チェック
44
*/
5-
#ifndef ___TRAJECTORY_H
6-
#define ___TRAJECTORY_H
5+
#ifndef ___KAL_TRAJECTORY_H
6+
#define ___KAL_TRAJECTORY_H
77
#include <math.h>
88
#include "config.h"
99

‎two_wheel_drive.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//two_wheel_drive.h
22
//2輪駆動ロボット制御ライブラリ
3-
#ifndef ___TWO_WHEEL_DRIVE_H
4-
#define ___TWO_WHEEL_DRIVE_H
3+
#ifndef ___KAL_TWO_WHEEL_DRIVE_H
4+
#define ___KAL_TWO_WHEEL_DRIVE_H
55
#include "config.h"
66
#include "utilize.h"
77
//#include "joint_controller.h"

‎utilize.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//convinient function
2-
#ifndef ___UTILIZE_H
3-
#define ___UTILIZE_H
2+
#ifndef ___KAL_UTILIZE_H
3+
#define ___KAL_UTILIZE_H
44
#include<math.h>
55

66
#define DEG2RAD (PI/180.0)

‎wave.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//wave generator
2-
#ifndef ___WAVE_H
3-
#define ___WAVW_H
2+
#ifndef ___KAL_WAVE_H
3+
#define ___KAL_WAVW_H
44
#include "config.h"
55
#include "utilize.h"
66

0 commit comments

Comments
 (0)
Please sign in to comment.