Skip to content
Snippets Groups Projects

uart no cts

Merged Harrison Chen requested to merge hh6chen-track-b-no-cts into main
5 files
+ 188
128
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 15
5
@@ -23,8 +23,8 @@ void test_cts() {
}
void test_dijkstra_tc2_blocks_properly() {
set_path2(24, 56, 0); // D9
// set_path2(78, 70, 0); // E7
// set_path2(24, 56, 0); // D9
// set_path2(78, 70, 0); // E7
}
// IMPORTANT!!!! THIS DOESN'T TURN SOLENOID OFF!!!!
@@ -116,12 +116,16 @@ void test_rng() {
void bootstrap_tc1() {
init_track('b');
char NO_CTS = 1;
Create(0, name_server);
Create(0, clock_server);
Create(0, clock_notifier);
Create(0, uart_term_server_tx);
// Create(0, uart_train_server_tx_no_cts);
Create(0, uart_train_server_tx);
if (NO_CTS) {
Create(0, uart_train_server_tx_no_cts);
} else {
Create(0, uart_train_server_tx);
}
Create(0, uart_term_server_rx);
Create(0, uart_train_server_rx);
Create(0, uart_notifier);
@@ -142,8 +146,14 @@ void bootstrap_tc1() {
init_switches();
Delay(get_tid_by_name(CLOCK_SERVER), 500); // give it 5s to set up all the switches
if (NO_CTS) {
Create(1, sensor_read_courier_no_cts);
} else {
Create(1, sensor_read_courier);
}
Create(1, sensor_query_server);
Create(1, sensor_read_courier);
for (int i = 0; i < 19; i++) {
Create(1, terminal_admin);
}
Loading