You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new flag to switch to simulate mode.
Somehow iterate through the messages and send them appropriately, maybe with a giant futures::select! generated by the YAML perhaps??? This may require a switch to tokio but would certainly be the cleanest.
Use a random generator at boot to select the value between sim_max and sim_min, and then randomly increment by a number between sim_inc_min and sim_inc_max. If the number is going to exceed the bounds of sim_max and/or sim_min, reject it. Use the correct primitive size to ensure overflow is less likely, for bitwise encodables use the smallest possible primitive, unless a 1 bit message that should be automatically pretty easy.
Note we do not need to convert to CAN message and back in this ticket, its not like EncodableCANMsg. This is purely to emit good mock data for the Odyssey framework to consume.
The text was updated successfully, but these errors were encountered:
Include new YAML param inside CANMsg:
CANMsg:
inside each CANPoint:
Add a new flag to switch to simulate mode.
Somehow iterate through the messages and send them appropriately, maybe with a giant
futures::select!
generated by the YAML perhaps??? This may require a switch to tokio but would certainly be the cleanest.Use a random generator at boot to select the value between sim_max and sim_min, and then randomly increment by a number between sim_inc_min and sim_inc_max. If the number is going to exceed the bounds of sim_max and/or sim_min, reject it. Use the correct primitive size to ensure overflow is less likely, for bitwise encodables use the smallest possible primitive, unless a 1 bit message that should be automatically pretty easy.
Note we do not need to convert to CAN message and back in this ticket, its not like EncodableCANMsg. This is purely to emit good mock data for the Odyssey framework to consume.
The text was updated successfully, but these errors were encountered: