Skip to content

Commit

Permalink
Add Fujitsu air direction methods
Browse files Browse the repository at this point in the history
  • Loading branch information
daz committed Oct 19, 2019
1 parent 0b63b02 commit 8b93f89
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
25 changes: 15 additions & 10 deletions FujitsuHeatpumpIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ void FujitsuHeatpumpIR::sendFujitsu(IRSender& IR, uint8_t operatingMode, uint8_t
uint8_t OFF_msg[] = { 0x14, 0x63, 0x00, 0x10, 0x10, 0x02, 0xFD };
uint8_t checksum = 0x00;

/*
Fujitsu does not have codes to set the air direction to any specific position, but just go to the next position:
uint8_t nextVerticalPosition_msg[] = { 0x14, 0x63, 0x00, 0x10, 0x10, 0x6C, 0x93 };
uint8_t nextHorizontalPosition_msg[] = { 0x14, 0x63, 0x00, 0x10, 0x10, 0x79,0x86 };
These would need to be sent separately...
*/
// Set the operatingmode on the template message
FujitsuTemplate[9] = operatingMode;

Expand Down Expand Up @@ -204,6 +195,20 @@ void FujitsuHeatpumpIR::sendFujitsuSuperQuiet(IRSender& IR)
sendFujitsuMsg(IR, sizeof(SuperQuiet_msg), SuperQuiet_msg);
}

void FujitsuHeatpumpIR::sendNextVerticalPosition(IRSender& IR)
{
uint8_t NextVerticalPosition_msg[] = { 0x14, 0x63, 0x00, 0x10, 0x10, 0x6C, 0x93 };

sendFujitsuMsg(IR, sizeof(NextVerticalPosition_msg), NextVerticalPosition_msg);
}

void FujitsuHeatpumpIR::sendNextHorizontalPosition(IRSender& IR)
{
uint8_t NextHorizontalPosition_msg[] = { 0x14, 0x63, 0x00, 0x10, 0x10, 0x79, 0x86 };

sendFujitsuMsg(IR, sizeof(NextHorizontalPosition_msg), NextHorizontalPosition_msg);
}


void FujitsuHeatpumpIR::sendFujitsuTestRun(IRSender& IR)
{
Expand All @@ -230,4 +235,4 @@ void FujitsuHeatpumpIR::sendFujitsuMsg(IRSender& IR, uint8_t msgSize, uint8_t *m
// End mark
IR.mark(FUJITSU_AIRCON1_BIT_MARK);
IR.space(0);
}
}
2 changes: 2 additions & 0 deletions FujitsuHeatpumpIR.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class FujitsuHeatpumpIR : public HeatpumpIR
void sendFujitsuSwingOn(IRSender& IR);
void sendFujitsuFilterClean(IRSender& IR);
void sendFujitsuSuperQuiet(IRSender& IR);
void sendNextVerticalPosition(IRSender& IR);
void sendNextHorizontalPosition(IRSender& IR);
void sendFujitsuTestRun(IRSender& IR);

private:
Expand Down

0 comments on commit 8b93f89

Please sign in to comment.