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

4輪独立ステアリングの制御例 More...

#include <../snippets/Motor.h>
#include <SteerDrive.h>
#include <mbed.h>
#include <array>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main ()
 [construct]
 

Variables

Motor motors [4] = {{D8, D9}, {D10, D11}, {D12, D13}, {D14, D15}}
 
PwmOut servo [4] = {D4, D5, D6, D7}
 
SteerDrive< 4 > steer
 [construct]
 

Detailed Description

4輪独立ステアリングの制御例

Definition in file main.cpp.

Function Documentation

◆ main()

int main ( )

[construct]

[move]

[move]

Definition at line 22 of file main.cpp.

Variable Documentation

◆ motors

Motor motors[4] = {{D8, D9}, {D10, D11}, {D12, D13}, {D14, D15}}

Definition at line 11 of file main.cpp.

◆ servo

PwmOut servo[4] = {D4, D5, D6, D7}

Definition at line 12 of file main.cpp.

◆ steer

SteerDrive<4> steer
Initial value:
{[](std::array<std::complex<float>, 4> cmp) {
for(int i = 0; i < 4; ++i) {
motors[i] = abs(cmp[i]);
servo[i] = arg(cmp[i]);
}
}}
N輪オムニの制御を行うクラス。
Definition Omni.h:25

[construct]

Definition at line 14 of file main.cpp.