some fixes
This commit is contained in:
@ -31,15 +31,16 @@ void telemetry_set_message_id(telemetry_frame_t *frame, uint16_t message_id)
|
||||
void telemetry_set_live_data(telemetry_frame_t *frame,
|
||||
uint16_t laser1_power,
|
||||
uint16_t laser2_power,
|
||||
uint32_t tick_10ms,
|
||||
uint16_t input_pf3_raw,
|
||||
uint16_t input_pf4_raw,
|
||||
uint16_t laser1_temperature,
|
||||
uint16_t laser2_temperature,
|
||||
uint16_t adc_slot_7,
|
||||
uint16_t adc_slot_8,
|
||||
uint16_t adc_slot_9,
|
||||
uint16_t adc_slot_10,
|
||||
uint16_t adc_slot_11,
|
||||
uint16_t adc_slot_12)
|
||||
uint16_t external_temperature_1_raw,
|
||||
uint16_t external_temperature_2_raw,
|
||||
uint16_t rail_3v3_raw,
|
||||
uint16_t rail_5v1_raw,
|
||||
uint16_t rail_5v2_raw,
|
||||
uint16_t rail_7v0_raw)
|
||||
{
|
||||
if (frame == NULL)
|
||||
{
|
||||
@ -48,16 +49,16 @@ void telemetry_set_live_data(telemetry_frame_t *frame,
|
||||
|
||||
frame->words[1] = laser1_power;
|
||||
frame->words[2] = laser2_power;
|
||||
frame->words[3] = (uint16_t)(tick_10ms & 0xFFFFu);
|
||||
frame->words[4] = (uint16_t)((tick_10ms >> 16) & 0xFFFFu);
|
||||
frame->words[3] = input_pf3_raw;
|
||||
frame->words[4] = input_pf4_raw;
|
||||
frame->words[5] = laser1_temperature;
|
||||
frame->words[6] = laser2_temperature;
|
||||
frame->words[7] = adc_slot_7;
|
||||
frame->words[8] = adc_slot_8;
|
||||
frame->words[9] = adc_slot_9;
|
||||
frame->words[10] = adc_slot_10;
|
||||
frame->words[11] = adc_slot_11;
|
||||
frame->words[12] = adc_slot_12;
|
||||
frame->words[7] = external_temperature_1_raw;
|
||||
frame->words[8] = external_temperature_2_raw;
|
||||
frame->words[9] = rail_3v3_raw;
|
||||
frame->words[10] = rail_5v1_raw;
|
||||
frame->words[11] = rail_5v2_raw;
|
||||
frame->words[12] = rail_7v0_raw;
|
||||
}
|
||||
|
||||
void telemetry_finalize(telemetry_frame_t *frame)
|
||||
|
||||
Reference in New Issue
Block a user