forward
Dependencies: VNH5019
Fork of AigamozuControlPackets by
Diff: AigamozuControlPackets.cpp
- Revision:
- 3:282dad679fca
- Parent:
- 2:3f2d4f53ceed
--- a/AigamozuControlPackets.cpp Sun Jun 08 09:44:19 2014 +0000 +++ b/AigamozuControlPackets.cpp Wed Jun 18 13:48:02 2014 +0000 @@ -1,5 +1,4 @@ #include "AigamozuControlPackets.h" -#include "VNH5019.h" AigamozuControlPackets::AigamozuControlPackets(){ @@ -20,14 +19,14 @@ packetLength = RECEIVE_STATUS_COMMNAD_LENGTH; } -void AigamozuControlPackets::createRequestCommand(uint8_t fromID,uint8_t toID,uint8_t) +void AigamozuControlPackets::createRequestCommand(uint8_t fromID,uint8_t toID) { uint8_t tmp[] = {'A','G','S','S','F',fromID,'T',toID,'A','G','E'}; for(int i = 0; i < REQUEST_COMMNAD_LENGTH; ++i) packetData[i] = tmp[i]; packetLength = REQUEST_COMMNAD_LENGTH; } -void AigamozuControlPackets::createChangeModeCommand(uint8_t fromID,uint8_t toID,uint8_t,MODE mode){ +void AigamozuControlPackets::createChangeModeCommand(uint8_t fromID,uint8_t toID,MODE mode){ uint8_t tmp[] = {'A','G','S','C','F',fromID,'T',toID,mode,'A','G','E'}; for(int i = 0; i < CHANGE_MODE_COMMAND_LENGTH; ++i) packetData[i] = tmp[i]; packetLength = CHANGE_MODE_COMMAND_LENGTH;