Chassis v2.1.1
Chassisはロボコンでの足回り制御を行うためのC++ライブラリである。
Loading...
Searching...
No Matches
main.cpp File Reference

自動制御 More...

#include <../snippets/Motor.h>
#include <ChassisAuto.h>
#include <Odom.h>
#include <Omni.h>
#include <PollingTimer.h>
#include <mbed.h>
#include <array>
#include <functional>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

bool check_reached (const Coordinate &dst, const Coordinate &pos)
 hoge
 
int main ()
 

Variables

Timer timer
 
Odom< 3 > odom {}
 
Motor motors [3] = {{D10, D11}, {D12, D13}, {D12, D13}}
 
ChassisAuto< Omni< 3 > > chassis
 

Detailed Description

自動制御

Definition in file main.cpp.

Function Documentation

◆ check_reached()

bool check_reached ( const Coordinate dst,
const Coordinate pos 
)

hoge

Parameters
dsthoge
poshoge
Returns
hoge

Definition at line 49 of file main.cpp.

◆ main()

int main ( )

Definition at line 27 of file main.cpp.

Variable Documentation

◆ chassis

ChassisAuto<Omni<3> > chassis
Initial value:
{[](std::array<float,3> pwm) {
for(int i = 0; i < 3; ++i) {
motors[i] = pwm[i];
}
},
PidGain{0.1}}
N輪オムニの制御を行うクラス。
Definition Omni.h:25
PID制御のゲイン
Definition Pid.h:21

Definition at line 18 of file main.cpp.

◆ motors

Motor motors[3] = {{D10, D11}, {D12, D13}, {D12, D13}}

Definition at line 17 of file main.cpp.

◆ odom

Odom<3> odom {}

Definition at line 16 of file main.cpp.

◆ timer

Timer timer

Definition at line 15 of file main.cpp.