mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 17:48:35 -04:00
Copter: no MotBatt logging for TradHeli
This commit is contained in:
parent
4cacff54b4
commit
1b68d0eead
@ -425,6 +425,7 @@ struct PACKED log_MotBatt {
|
|||||||
// Write an rate packet
|
// Write an rate packet
|
||||||
void Copter::Log_Write_MotBatt()
|
void Copter::Log_Write_MotBatt()
|
||||||
{
|
{
|
||||||
|
#if FRAME_CONFIG != HELI_FRAME
|
||||||
struct log_MotBatt pkt_mot = {
|
struct log_MotBatt pkt_mot = {
|
||||||
LOG_PACKET_HEADER_INIT(LOG_MOTBATT_MSG),
|
LOG_PACKET_HEADER_INIT(LOG_MOTBATT_MSG),
|
||||||
time_us : hal.scheduler->micros64(),
|
time_us : hal.scheduler->micros64(),
|
||||||
@ -434,6 +435,7 @@ void Copter::Log_Write_MotBatt()
|
|||||||
th_limit : (float)(motors.get_throttle_limit())
|
th_limit : (float)(motors.get_throttle_limit())
|
||||||
};
|
};
|
||||||
DataFlash.WriteBlock(&pkt_mot, sizeof(pkt_mot));
|
DataFlash.WriteBlock(&pkt_mot, sizeof(pkt_mot));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PACKED log_Startup {
|
struct PACKED log_Startup {
|
||||||
|
Loading…
Reference in New Issue
Block a user