添加 ‘编辑默认打印设置’ 前的缓存
This commit is contained in:
@@ -3615,15 +3615,20 @@ extern "C" {
|
||||
#pragma pack()
|
||||
}
|
||||
|
||||
static FlightComCtrl_t flightComCtrl;
|
||||
|
||||
void DevOp::writeFlightCompCtrl(bool enb, bool enbAccelDecelPredict, quint32 flightCompWindow)
|
||||
{
|
||||
static FlightComCtrl_t flightComCtrl;
|
||||
|
||||
memset(&flightComCtrl, 0, sizeof(FlightComCtrl_t));
|
||||
flightComCtrl.flags |= (enb ? 1 : 0);
|
||||
flightComCtrl.flags |= (enbAccelDecelPredict ? 0x2 : 0x0);
|
||||
flightComCtrl.flightCompWindow = flightCompWindow;
|
||||
|
||||
writeFlightCompCtrl();
|
||||
}
|
||||
|
||||
void DevOp::writeFlightCompCtrl()
|
||||
{
|
||||
fpgaWr(FLIGHT_COMP_CTRL_BASE, (unsigned char*)(&flightComCtrl), sizeof(FlightComCtrl_t));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user