mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Temperature: Add DroneCAN source
This commit is contained in:
parent
e772012e01
commit
6e4ce35fca
@ -90,6 +90,9 @@ void AP_TemperatureSensor_Backend::update_external_libraries(const float tempera
|
|||||||
AP::battery().set_temperature_by_serial_number(temperature, _params.source_id);
|
AP::battery().set_temperature_by_serial_number(temperature, _params.source_id);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
case AP_TemperatureSensor_Params::Source::DroneCAN:
|
||||||
|
// Label only, used by AP_Periph
|
||||||
|
break;
|
||||||
|
|
||||||
case AP_TemperatureSensor_Params::Source::None:
|
case AP_TemperatureSensor_Params::Source::None:
|
||||||
case AP_TemperatureSensor_Params::Source::Pitot_tube:
|
case AP_TemperatureSensor_Params::Source::Pitot_tube:
|
||||||
|
@ -58,7 +58,7 @@ const AP_Param::GroupInfo AP_TemperatureSensor_Params::var_info[] = {
|
|||||||
// @Param: SRC
|
// @Param: SRC
|
||||||
// @DisplayName: Sensor Source
|
// @DisplayName: Sensor Source
|
||||||
// @Description: Sensor Source is used to designate which device's temperature report will be replaced by this temperature sensor's data. If 0 (None) then the data is only available via log. In the future a new Motor temperature report will be created for returning data directly.
|
// @Description: Sensor Source is used to designate which device's temperature report will be replaced by this temperature sensor's data. If 0 (None) then the data is only available via log. In the future a new Motor temperature report will be created for returning data directly.
|
||||||
// @Values: 0: None, 1:ESC, 2:Motor(not implemented yet), 3:Battery Index, 4:Battery ID/SerialNumber, 5: CAN based Pitot tube
|
// @Values: 0: None, 1:ESC, 2:Motor, 3:Battery Index, 4:Battery ID/SerialNumber, 5:CAN based Pitot tube, 6:DroneCAN-out on AP_Periph
|
||||||
// @User: Standard
|
// @User: Standard
|
||||||
AP_GROUPINFO("SRC", 4, AP_TemperatureSensor_Params, source, (float)Source::None),
|
AP_GROUPINFO("SRC", 4, AP_TemperatureSensor_Params, source, (float)Source::None),
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ public:
|
|||||||
Battery_Index = 3,
|
Battery_Index = 3,
|
||||||
Battery_ID_SerialNumber = 4,
|
Battery_ID_SerialNumber = 4,
|
||||||
Pitot_tube = 5,
|
Pitot_tube = 5,
|
||||||
|
DroneCAN = 6,
|
||||||
};
|
};
|
||||||
|
|
||||||
AP_Enum<Type> type; // 0=disabled, others see frontend enum TYPE
|
AP_Enum<Type> type; // 0=disabled, others see frontend enum TYPE
|
||||||
|
Loading…
Reference in New Issue
Block a user