mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-19 23:28:32 -04:00
15 lines
417 B
C++
15 lines
417 B
C++
#include "MsgHandler_ARM.h"
|
|
|
|
extern const AP_HAL::HAL& hal;
|
|
|
|
void MsgHandler_ARM::process_message(uint8_t *msg)
|
|
{
|
|
wait_timestamp_from_msg(msg);
|
|
uint8_t ArmState = require_field_uint8_t(msg, "ArmState");
|
|
hal.util->set_soft_armed(ArmState);
|
|
printf("Armed state: %u at %lu\n",
|
|
(unsigned)ArmState,
|
|
(unsigned long)hal.scheduler->millis());
|
|
dataflash.WriteBlock(msg, f.length);
|
|
}
|