yei
Dependencies: interface mbed enc_1multi calPID motorout KondoServoLibrary
Fork of cat18_operate by
Diff: go/go.h
- Revision:
- 14:f5f6bba2e70f
- Child:
- 16:b2358fd35999
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/go/go.h Mon Aug 13 09:03:39 2018 +0000 @@ -0,0 +1,21 @@ +#ifndef INCLUDED_GO_H +#define INCLUDED_GO_H +/** @file +@brief 目標位置まで行くプログラム. +*/ +#include "state.h" +extern int isInterrupt; +extern const double kPIDTicker_s; +extern const double kServoTicker_s; + +void GoSetup(); +void PIDInterrupt(); +void ServoTargetInterrupt(); + +int Go(WorkState &workstate); +void Above(); +/// @return ワーク直前で止まる値を返す +void GetPrePosition(WorkState &state, double (&result)[3]); +//ゆっくり0点に戻るときに使う +void GoToZeroSlowly(); +#endif \ No newline at end of file