エレキジャック Web版 マイコン・カーを製作してみよう<21> マイコンカー制御プログラムです。http://www.eleki-jack.com/arm/2012/10/21.html このプログラムは次回の記事でアップされるパソコン用プログラムを使ってマイコンカーを制御するプログラムです。マイコンカーとパソコンの通信はXbeeを使っています。
Revision 3:ba97046adcd1, committed 2012-05-06
- Comitter:
- sunifu
- Date:
- Sun May 06 10:54:43 2012 +0000
- Parent:
- 2:9758930faa7e
- Child:
- 4:887ced27d5d6
- Commit message:
- 0.0.9
Changed in this revision
CameraC1098.h | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/CameraC1098.h Sun May 06 09:43:28 2012 +0000 +++ b/CameraC1098.h Sun May 06 10:54:43 2012 +0000 @@ -1,10 +1,12 @@ /** * C1098-SS device driver class (Version 1.0) - * Reference documents: C1098-SS User Manual v1.0 2012.4.1 + * Reference documents: C1098-SS User Manual v1.0 2012.5.6 * + * CameraC328Library * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) * http://shinta.main.jp/ * + * CameraC1098-SS Library * Copyright (C) 2012 Tadao Iida */ @@ -69,7 +71,7 @@ * * @param tx A pin for transmit. * @param rx A pin for receive. - * @param baud Baud rate. (Default is Baud19200.) + * @param baud Baud rate. (Default is Baud14400.) */ CameraC1098(PinName tx, PinName rx, Baud baud = Baud14400); @@ -100,7 +102,11 @@ */ ErrorNumber getJpegSnapshotPicture(void(*func)(char *buf, size_t siz)); - ErrorNumber sendReset(ResetType specialReset); + /** + * mbed Interface Speed. + * + * @param baud mbed Interface Speed. + */ void setmbedBaud(Baud baud); private: @@ -112,6 +118,7 @@ ErrorNumber sendInitial(Baud band, JpegResolution jr); ErrorNumber sendGetPicture(void); ErrorNumber sendSnapshot(void); + ErrorNumber sendReset(ResetType specialReset); ErrorNumber sendSetPackageSize(uint16_t packageSize); ErrorNumber recvData(uint32_t *length);
--- a/main.cpp Sun May 06 09:43:28 2012 +0000 +++ b/main.cpp Sun May 06 10:54:43 2012 +0000 @@ -1,8 +1,12 @@ /** * Test program. * + * CameraC328Library * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) * http://shinta.main.jp/ + * + * CameraC1098-SS Library + * Copyright (C) 2012 Tadao Iida */ /*