Pedal Board Validation

Intro

The pedal board has both a calibration component and a normal mode. The calibration is structured as a test and provides instructions via minicom.

PEDAL_OUTPUT CAN message:

  • ID: 0x12

  • 4 LSB are throttle output U32

  • 4 MSB are brake output U32

Action

Expected Result

Actual / Notes

Action

Expected Result

Actual / Notes

1

Compile pedal_boardproject

No compilation errors

PASS

2

Connect CAN dongle

Nothing, haven’t flashed project yet

 

3

Run pedal calib test with make test PROJECT=pedal_board TEST=pedal_calib.c

Follow instructions given over minicom.

Calibration will be checked in later steps.

 

4

Flash pedal_board project

“Welcome to Pedal” followed by some other logs expected.

CAN messages expected to appear.

 

5

Make sure pedal and brake are not pressed. Observe CAN messages.

PEDAL_OUTPUT CAN 0x12 message with 0x0 bytes expected. Bytes may be small values, but should be close to zero. Message expected every 100 ms.

 

6

Depress pedal and brake all the way.

First four message bytes should be very similar to last four message bytes.

 

7

Depress pedal all the way and release brake.

Brake value should go to near zero.

 

8

Depress brake all the way and release pedal.

Maximum brake value should be the same as max pedal value.

 

9

Release both. Slowly depress throttle.

Observe throttle value slowly increasing from minimum to maximum.

 

10

Release both. Slowly depress brake.

Observe brakevalue slowly increasing from minimum to maximum.