Add Fujitsu air direction methods
This commit is contained in:
parent
0b63b022c2
commit
8b93f89ca1
|
@ -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 OFF_msg[] = { 0x14, 0x63, 0x00, 0x10, 0x10, 0x02, 0xFD };
|
||||||
uint8_t checksum = 0x00;
|
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
|
// Set the operatingmode on the template message
|
||||||
FujitsuTemplate[9] = operatingMode;
|
FujitsuTemplate[9] = operatingMode;
|
||||||
|
|
||||||
|
@ -204,6 +195,20 @@ void FujitsuHeatpumpIR::sendFujitsuSuperQuiet(IRSender& IR)
|
||||||
sendFujitsuMsg(IR, sizeof(SuperQuiet_msg), SuperQuiet_msg);
|
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)
|
void FujitsuHeatpumpIR::sendFujitsuTestRun(IRSender& IR)
|
||||||
{
|
{
|
||||||
|
@ -230,4 +235,4 @@ void FujitsuHeatpumpIR::sendFujitsuMsg(IRSender& IR, uint8_t msgSize, uint8_t *m
|
||||||
// End mark
|
// End mark
|
||||||
IR.mark(FUJITSU_AIRCON1_BIT_MARK);
|
IR.mark(FUJITSU_AIRCON1_BIT_MARK);
|
||||||
IR.space(0);
|
IR.space(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,8 @@ class FujitsuHeatpumpIR : public HeatpumpIR
|
||||||
void sendFujitsuSwingOn(IRSender& IR);
|
void sendFujitsuSwingOn(IRSender& IR);
|
||||||
void sendFujitsuFilterClean(IRSender& IR);
|
void sendFujitsuFilterClean(IRSender& IR);
|
||||||
void sendFujitsuSuperQuiet(IRSender& IR);
|
void sendFujitsuSuperQuiet(IRSender& IR);
|
||||||
|
void sendNextVerticalPosition(IRSender& IR);
|
||||||
|
void sendNextHorizontalPosition(IRSender& IR);
|
||||||
void sendFujitsuTestRun(IRSender& IR);
|
void sendFujitsuTestRun(IRSender& IR);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue