hexagon logo

How can I trigger an external action from within the driver control file?

Hello,
 
I want to trigger an action from within the driver control files that is not an standard output (throttle/steering/clutch etc). Basically I want to do some minimaneuvers to achieve a certain vehicle state, then activate a parking lock torque in the gearbox, then deactivate it and continue the simulation.
 
Of course I could use some STEP(time) functions in the torque expression to activate the torque at the right moment, but that solution wouldn't be general for different driver control files . Any ideas on how to trigger such an action from within the driver control file?
 
Thanks
/Oskar
 
 
 
 
 
 
 
Parents
  • How about introducing a new gear like -2 and trigger upon value of gear_demand ?
    That'd add a single maninimaneuver for your parking brake where you set gear_demand to -2 and you're done.
     
    Another one would be to add the parking brake trigger to the brake system and donate a speed sensor.
    Algo would be like "If speed is below threshold and brake_demand is > 0, then apply parking brake" and the inserted mini-maneuver would simply be something like zero speed and brake demand set to 100.
Reply
  • How about introducing a new gear like -2 and trigger upon value of gear_demand ?
    That'd add a single maninimaneuver for your parking brake where you set gear_demand to -2 and you're done.
     
    Another one would be to add the parking brake trigger to the brake system and donate a speed sensor.
    Algo would be like "If speed is below threshold and brake_demand is > 0, then apply parking brake" and the inserted mini-maneuver would simply be something like zero speed and brake demand set to 100.
Children
No Data