Skip to content

Commit

Permalink
modify system state to LOOP for DE and Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
thanasipantazides committed Jan 3, 2025
1 parent bf998e1 commit 1b60e06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Circle.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "Circle.h"
#include "Parameters.h"
#include "Systems.h"
#include "Utilities.h"
#include <algorithm>
#include <boost/bind.hpp>
Expand Down Expand Up @@ -88,6 +90,8 @@ void Circle::init_housekeeping() {

// setup power ADC
transport->sync_send_command_to_system(*housekeeping, deck->get_command_for_sys_for_code(housekeeping->system.hex, 0x28));

housekeeping->system_state = SYSTEM_STATE::LOOP;
}

void Circle::init_cdte() {
Expand Down Expand Up @@ -117,6 +121,7 @@ void Circle::init_cdte() {
utilities::debug_print("checking canister status...\n");
std::vector<uint8_t> can_status = transport->sync_send_command_to_system(*cdtede, deck->get_command_for_sys_for_code(cdtede->system.hex, 0x8a));
can_status = transport->get_reply_data(can_status, cdtede->system);
cdtede->system_state = SYSTEM_STATE::LOOP;
utilities::debug_print("canisters status: ");
utilities::hex_print(can_status);

Expand Down

0 comments on commit 1b60e06

Please sign in to comment.