Display steering angle, speed & cones in AMI

This commit is contained in:
2023-08-01 19:21:33 +02:00
parent 6d70d12148
commit 2b54a8ffe8
42 changed files with 1351 additions and 371 deletions

View File

@ -8,6 +8,8 @@ extern "C" {
#include "stw_defines.h"
#include <stdint.h>
#define NUM_CONES 12
typedef enum {
TS_INACTIVE = 0,
TS_ACTIVE = 1,
@ -88,6 +90,11 @@ typedef struct {
float bat_r;
} Temperatures;
typedef struct {
uint16_t x;
uint16_t y;
} ConePosition;
typedef struct {
TSState ts_state;
ASState as_state;
@ -151,6 +158,14 @@ typedef struct {
float brake_press_r;
float distance_total;
uint32_t last_jetson_msg;
uint32_t last_epsc_msg;
float desired_angle;
float measured_angle;
float desired_speed;
ConePosition cone_pos[NUM_CONES];
} VehicleState;
extern VehicleState vehicle_state;